mirror of
https://github.com/logos-storage/nim-datastore.git
synced 2026-01-04 06:33:11 +00:00
refactoring to non-async
This commit is contained in:
parent
10d4031c5c
commit
5752eb01e1
@ -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,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user