all repos — litestore @ 050bb4cabb9c45af93ea71e821120c2b79ea42db

A minimalist nosql document store.

Fixed compilation warnings; added nakefile.nim to skipFiles.
h3rald h3rald@h3rald.com
Fri, 06 Oct 2017 22:02:49 +0200
commit

050bb4cabb9c45af93ea71e821120c2b79ea42db

parent

d93cede5bad952f284486ac687925dd61ac5c5ab

2 files changed, 5 insertions(+), 4 deletions(-)

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

@@ -21,13 +21,13 @@ # Manage Datastores

var LS_TRANSACTION = false -proc createIndexes(db: TDbConn) = +proc createIndexes(db: DbConn) = db.exec SQL_CREATE_INDEX_DOCUMENTS_DOCID db.exec SQL_CREATE_INDEX_DOCUMENTS_ID db.exec SQL_CREATE_INDEX_TAGS_TAG_ID db.exec SQL_CREATE_INDEX_TAGS_DOCUMENT_ID -proc dropIndexes(db: TDbConn) = +proc dropIndexes(db: DbConn) = db.exec SQL_DROP_INDEX_DOCUMENTS_DOCID db.exec SQL_DROP_INDEX_DOCUMENTS_ID db.exec SQL_DROP_INDEX_TAGS_TAG_ID

@@ -279,7 +279,7 @@ return (data: raw_document[1], contenttype: raw_document[2])

proc retrieveRawDocuments*(store: Datastore, options: var QueryOptions = newQueryOptions()): JsonNode = var select = prepareSelectDocumentsQuery(options) - var raw_documents: seq[TRow] + var raw_documents: seq[Row] if options.folder != "": raw_documents = store.db.getAllRows(select.sql, options.folder & "%") else:
M litestore.nimblelitestore.nimble

@@ -5,6 +5,7 @@ author = "Fabio Cevasco"

description = "Self-contained, lightweight, RESTful document store." license = "MIT" bin = "litestore" +skipFiles = @["nakefile.nim"] [Deps] -requires: "nimrod >= 0.13.0" +requires: "nimrod >= 0.17.2"