all repos — litestore @ 4858c14e4efcaad1c87fe10cf3c17ef4b04992d5

A minimalist nosql document store.

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

4858c14e4efcaad1c87fe10cf3c17ef4b04992d5

parent

6db05d477da080e758547d98e2f8c5dc1a4df06f

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