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 (#66)
This commit is contained in:
parent
962c08c101
commit
d95074ab91
@ -9,6 +9,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.
|
||||||
@ -55,6 +57,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