mirror of
https://github.com/logos-storage/nim-datastore.git
synced 2026-01-04 22:53:08 +00:00
Merge branch 'master' into leveldb-review
This commit is contained in:
commit
38157edd5d
@ -9,6 +9,8 @@ import pkg/chronos
|
||||
import pkg/chronos/futures
|
||||
|
||||
import ./datastore
|
||||
import ./types
|
||||
import ./key
|
||||
|
||||
## Wrapper for Datastore with basic functionality of automatically converting
|
||||
## stored values from some user defined type `T` to `seq[byte]` and vice-versa.
|
||||
@ -55,6 +57,8 @@ type
|
||||
next*: GetNext[T]
|
||||
dispose*: IterDispose
|
||||
|
||||
export types, key, IterDispose, Key, Query, SortOrder, QueryEndedError
|
||||
|
||||
# Helpers
|
||||
template requireDecoder*(T: typedesc): untyped =
|
||||
when not (compiles do:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user