all repos — litestore @ 0dab5969addba8f50a7fad80169cf6f35c57dc32

A minimalist nosql document store.

Merge branch 'master' of https://github.com/h3rald/litestore
h3rald h3rald@h3rald.com
Sun, 11 Mar 2018 11:24:30 +0100
commit

0dab5969addba8f50a7fad80169cf6f35c57dc32

parent

d031866fcb2675b000a856a3fb022b2e28522ba9

1 files changed, 3 insertions(+), 1 deletions(-)

jump to
M lib/api_v3.nimlib/api_v3.nim

@@ -42,7 +42,9 @@ """

for f in fragments: var matches = @["", ""] if f.find(clause, matches) != -1: - let field = "json_extract(documents.data, '$1')" % matches[1] + var field = matches[1] + if field[0] == '$': + field = "json_extract(documents.data, '$1')" % matches[1] if matches[0] == "-": clauses.add("$1 DESC" % field) else: