refactoring to non-async

This commit is contained in:
Jaremy Creechley 2023-09-20 20:59:06 -07:00
parent 10d4031c5c
commit 5752eb01e1
No known key found for this signature in database
GPG Key ID: 4E66FB67B21D3300

View File

@ -149,7 +149,7 @@ proc query*(self: SQLiteDatastore,
if not (v == SQLITE_OK):
return failure newException(DatastoreError, $sqlite3_errstr(v))
let iter = iterator(): ?!DbQueryResponse {.closure.} =
success iterator(): ?!DbQueryResponse {.closure.} =
try:
let
@ -197,6 +197,7 @@ proc query*(self: SQLiteDatastore,
return
proc new*(T: type SQLiteDatastore,
path: string,
readOnly = false): ?!T =