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): if not (v == SQLITE_OK):
return failure newException(DatastoreError, $sqlite3_errstr(v)) return failure newException(DatastoreError, $sqlite3_errstr(v))
let iter = iterator(): ?!DbQueryResponse {.closure.} = success iterator(): ?!DbQueryResponse {.closure.} =
try: try:
let let
@ -195,6 +195,7 @@ proc query*(self: SQLiteDatastore,
discard sqlite3_clear_bindings(s) discard sqlite3_clear_bindings(s)
s.dispose() s.dispose()
return return
proc new*(T: type SQLiteDatastore, proc new*(T: type SQLiteDatastore,