all repos — litestore @ d6c39a88febc46d14c833ce9063b42cc34f860d4

A minimalist nosql document store.

Fixed low level API calls.
h3rald h3rald@h3rald.com
Wed, 24 Oct 2018 21:41:17 +0200
commit

d6c39a88febc46d14c833ce9063b42cc34f860d4

parent

c906db2099d3ffb8e02c635d2459d6773dd4c3fd

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

jump to
M src/litestore.nimsrc/litestore.nim

@@ -142,28 +142,28 @@

# Public API: Low-level proc getInfo*(): LSResponse = - return LS.getInfo() + return LS.getInfo(newLSRequest("info")) proc getRawDocuments*(options = newQueryOptions()): LSResponse = - return LS.getRawDocuments(options) + return LS.getRawDocuments(options, newLSRequest("docs")) proc getDocument*(id: string, options = newQueryOptions()): LSResponse = - return LS.getDocument(id, options) + return LS.getDocument(id, options, newLSRequest("docs", id)) proc getRawDocument*(id: string, options = newQueryOptions()): LSResponse = - return LS.getRawDocument(id, options) + return LS.getRawDocument(id, options, newLSRequest("docs", id)) proc deleteDocument*(id: string): LSResponse = - return LS.deleteDocument(id) + return LS.deleteDocument(id, newLSRequest("docs", id)) proc postDocument*(body, ct: string, folder=""): LSResponse = - return LS.postDocument(body, ct, folder) + return LS.postDocument(body, ct, folder, newLSRequest("docs", "", body)) proc putDocument*(id, body, ct: string): LSResponse = - return LS.putDocument(id, body, ct) + return LS.putDocument(id, body, ct newLSRequest("docs", id, body)) proc patchDocument*(id, body: string): LSResponse = - return LS.patchDocument(id, body) + return LS.patchDocument(id, body, newLSRequest("docs", id, body)) # Public API: High-level