mirror of
https://github.com/logos-storage/nim-datastore.git
synced 2026-01-11 10:03:07 +00:00
initial take at making fsds synchronous
This commit is contained in:
parent
5242b85b36
commit
bb9e343e9f
@ -158,7 +158,7 @@ proc put*(
|
||||
|
||||
proc put*(
|
||||
self: FSDatastore,
|
||||
batch: seq[BatchEntry]): ?!void =
|
||||
batch: seq[DbBatchEntry[KeyId, DataBuffer]]): ?!void =
|
||||
|
||||
for entry in batch:
|
||||
if err =? self.put(entry.key, entry.data).errorOption:
|
||||
@ -182,7 +182,7 @@ proc close*(self: FSDatastore): ?!void =
|
||||
|
||||
proc query*(
|
||||
self: FSDatastore,
|
||||
query: DbQuery[KeyId, DataBuffer]): ?!QueryIter =
|
||||
query: DbQuery[KeyId]): ?!QueryIter =
|
||||
|
||||
without path =? self.path(query.key), error:
|
||||
return failure error
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user