mirror of
https://github.com/logos-storage/nim-datastore.git
synced 2026-01-07 16:13:07 +00:00
Replaces replace with substring in leveldbds query
This commit is contained in:
parent
b7794b26ab
commit
0654a76192
@ -80,7 +80,7 @@ proc getQueryString(query: Query): string =
|
|||||||
let toTrim = ["/*", "\\*"]
|
let toTrim = ["/*", "\\*"]
|
||||||
for trim in toTrim:
|
for trim in toTrim:
|
||||||
if result.endswith(trim):
|
if result.endswith(trim):
|
||||||
result = result.replace(trim, "")
|
result = result[0 ..< ^(trim.len)]
|
||||||
|
|
||||||
method query*(
|
method query*(
|
||||||
self: LevelDbDatastore,
|
self: LevelDbDatastore,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user