test query - it runs!

This commit is contained in:
Jaremy Creechley 2023-09-26 18:40:04 -07:00
parent 02de983dbd
commit 0fedfcfc00
No known key found for this signature in database
GPG Key ID: 4E66FB67B21D3300
2 changed files with 4 additions and 1 deletions

View File

@ -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 =

View File

@ -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()