mirror of
https://github.com/logos-storage/nim-datastore.git
synced 2026-01-04 06:33:11 +00:00
Add some exports to typedds.nim
This commit is contained in:
parent
0ee88a2a9b
commit
3d921ae085
@ -7,6 +7,8 @@ import pkg/chronos
|
|||||||
import pkg/chronos/futures
|
import pkg/chronos/futures
|
||||||
|
|
||||||
import ./datastore
|
import ./datastore
|
||||||
|
import ./types
|
||||||
|
import ./key
|
||||||
|
|
||||||
## Wrapper for Datastore with basic functionality of automatically converting
|
## Wrapper for Datastore with basic functionality of automatically converting
|
||||||
## stored values from some user defined type `T` to `seq[byte]` and vice-versa.
|
## stored values from some user defined type `T` to `seq[byte]` and vice-versa.
|
||||||
@ -53,6 +55,8 @@ type
|
|||||||
next*: GetNext[T]
|
next*: GetNext[T]
|
||||||
dispose*: IterDispose
|
dispose*: IterDispose
|
||||||
|
|
||||||
|
export types, key, IterDispose, Key, Query, SortOrder, QueryEndedError
|
||||||
|
|
||||||
# Helpers
|
# Helpers
|
||||||
template requireDecoder*(T: typedesc): untyped =
|
template requireDecoder*(T: typedesc): untyped =
|
||||||
when not (compiles do:
|
when not (compiles do:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user