all repos — litestore @ 603b65dfbdc673817ca340d3411c8f9f492f4350

A minimalist nosql document store.

Minor changes.
h3rald h3rald@h3rald.com
Mon, 16 Mar 2020 15:38:06 +0100
commit

603b65dfbdc673817ca340d3411c8f9f492f4350

parent

a990f7cd1411bf57ec5dbbc25ae519a1dd93497f

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

jump to
M src/litestorepkg/lib/core.nimsrc/litestorepkg/lib/core.nim

@@ -7,7 +7,6 @@ oids,

json, pegs, strtabs, - tables, strutils, base64, math

@@ -89,7 +88,7 @@ LOG.error(getCurrentExceptionMsg())

LOG.debug(e.getStackTrace()) LOG.error("Unable to upgrade datastore '$1'." % store.path) -proc openDatastore*(file: string): Datastore = +proc openDatastore*(file: string): Datastore {.gcsafe.} = if not file.fileExists: raise newException(EDatastoreDoesNotExist, "Datastore '$1' does not exists." % file)

@@ -675,7 +674,7 @@ LS.mount = settings["mount"].getBool

if not cliSettings.hasKey("readonly") and settings.hasKey("readonly"): LS.readonly = settings["readonly"].getBool -proc setup*(LS: var LiteStore, open = true) = +proc setup*(LS: var LiteStore, open = true) {.gcsafe.} = if not LS.file.fileExists: try: LS.file.createDatastore()