mirror of
https://github.com/logos-storage/nim-datastore.git
synced 2026-01-05 23:23:10 +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
|
||||
@ -197,6 +197,7 @@ proc query*(self: SQLiteDatastore,
|
||||
return
|
||||
|
||||
|
||||
|
||||
proc new*(T: type SQLiteDatastore,
|
||||
path: string,
|
||||
readOnly = false): ?!T =
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user