mirror of
https://github.com/logos-storage/nim-datastore.git
synced 2026-01-03 06:03:06 +00:00
Apply method name changes
Signed-off-by: Arnaud <arnaud@status.im>
This commit is contained in:
parent
6c425d7a35
commit
d366a9fdef
@ -79,7 +79,7 @@ proc getQueryString(query: Query): string =
|
||||
result = $(query.key)
|
||||
let toTrim = ["/*", "\\*"]
|
||||
for trim in toTrim:
|
||||
if result.endswith(trim):
|
||||
if result.endsWith(trim):
|
||||
result = result[0 ..< ^(trim.len)]
|
||||
|
||||
method query*(
|
||||
|
||||
@ -25,7 +25,7 @@ suite "Test Basic LevelDbDatastore":
|
||||
otherBytes = "some other bytes".toBytes
|
||||
|
||||
setupAll:
|
||||
createdir(tempDir)
|
||||
createDir(tempDir)
|
||||
|
||||
teardownAll:
|
||||
(await ds.close()).tryGet()
|
||||
@ -40,7 +40,7 @@ suite "Test LevelDB Query":
|
||||
var ds: LevelDbDatastore
|
||||
|
||||
setup:
|
||||
createdir(tempDir)
|
||||
createDir(tempDir)
|
||||
ds = LevelDbDatastore.new(tempDir).tryGet()
|
||||
|
||||
teardown:
|
||||
@ -57,7 +57,7 @@ suite "Test LevelDB Typed Query":
|
||||
var ds: LevelDbDatastore
|
||||
|
||||
setup:
|
||||
createdir(tempDir)
|
||||
createDir(tempDir)
|
||||
ds = LevelDbDatastore.new(tempDir).tryGet()
|
||||
|
||||
teardown:
|
||||
@ -87,7 +87,7 @@ suite "LevelDB Query: keys should disregard trailing wildcards":
|
||||
val3 = "value for 3".toBytes
|
||||
|
||||
setup:
|
||||
createdir(tempDir)
|
||||
createDir(tempDir)
|
||||
ds = LevelDbDatastore.new(tempDir).tryGet()
|
||||
(await ds.put(key1, val1)).tryGet
|
||||
(await ds.put(key2, val2)).tryGet
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user