mirror of
https://github.com/logos-storage/nim-datastore.git
synced 2026-01-02 21:53:05 +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):
|
||||
return failure newException(DatastoreError, $sqlite3_errstr(v))
|
||||
|
||||
let iter = iterator(): ?!DbQueryResponse {.closure.} =
|
||||
success iterator(): ?!DbQueryResponse {.closure.} =
|
||||
|
||||
try:
|
||||
let
|
||||
@ -195,6 +195,7 @@ proc query*(self: SQLiteDatastore,
|
||||
discard sqlite3_clear_bindings(s)
|
||||
s.dispose()
|
||||
return
|
||||
|
||||
|
||||
|
||||
proc new*(T: type SQLiteDatastore,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user