mirror of
https://github.com/logos-storage/nim-datastore.git
synced 2026-01-02 13:43: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 ./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