mirror of
https://github.com/logos-storage/nim-datastore.git
synced 2026-01-02 13:43:11 +00:00
test query - it runs!
This commit is contained in:
parent
02de983dbd
commit
0fedfcfc00
@ -37,7 +37,7 @@ proc new*(T: type QueryIter, dispose = defaultDispose): T =
|
||||
|
||||
proc init*(T: type Query,
|
||||
key: Key,
|
||||
value = false,
|
||||
value = true,
|
||||
sort = SortOrder.Ascending,
|
||||
offset = 0,
|
||||
limit = -1): Query =
|
||||
|
||||
@ -276,9 +276,12 @@ proc queryTask[DB](
|
||||
handle.cancel = true
|
||||
continue
|
||||
else:
|
||||
if item.isOk:
|
||||
echo "\tqueryTask:query:iter:result:data: ", $item.get().data
|
||||
ctx[].res = item.mapErr() do(exc: ref CatchableError) -> ThreadResErr:
|
||||
exc
|
||||
echo "\tqueryTask:query:iter:result: ", ctx[].res
|
||||
|
||||
echo "\tqueryTask:query:iter:fireSync "
|
||||
discard ctx[].signal.fireSync()
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user