Skip to content

Commit

Permalink
Split out code into separate modules.
Browse files Browse the repository at this point in the history
  • Loading branch information
oubiwann committed Mar 21, 2024
1 parent 4601bb4 commit 303dbf1
Show file tree
Hide file tree
Showing 7 changed files with 452 additions and 457 deletions.
16 changes: 16 additions & 0 deletions include/types.hrl
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
-type store() :: #{tab => atom(), writer => pid()}.
-type iterator() :: pid().

-type key() :: binary().
-type value() :: term() | any().
-type batch_ops() :: [{put, key(), value()} | {delete, key()} | {del, key()}].
-type fold_options() :: [{start_key, key()}
| {end_key, key()}
| {gt, key()}
| {gte, key()}
| {lt, key()}
| {lte, key()}
| {max, non_neg_integer()}].

-type iterator_ops() :: firstlast | next | prevbinary().
-type iterator_options() :: [keys_only].
Loading

0 comments on commit 303dbf1

Please sign in to comment.