all repos — litestore @ e3659f5d0c22ff356487b48f6ee27e64313a7134

A minimalist nosql document store.

Moved defaults out of .nimble file.
* Closes #27
h3rald h3rald@h3rald.com
Mon, 21 Sep 2015 22:30:28 +0200
commit

e3659f5d0c22ff356487b48f6ee27e64313a7134

parent

30ba63597153dd20207735d327ccbaa78cf3e910

3 files changed, 8 insertions(+), 18 deletions(-)

jump to
M LiteStore_UserGuide.htmLiteStore_UserGuide.htm

@@ -975,7 +975,7 @@ </ul>

</div> <div id="footer"> - <p><span class="copy"></span> Fabio Cevasco &ndash; September 20, 2015</p> + <p><span class="copy"></span> Fabio Cevasco &ndash; September 21, 2015</p> <p><span>Powered by</span> <a href="https://h3rald.com/hastyscribe"><span class="hastyscribe"></span></a></p> </div> </body>
M lib/config.nimlib/config.nim

@@ -3,11 +3,15 @@ parsecfg,

streams, strutils -const cfgfile = "litestore.nimble".slurp +const + cfgfile = "litestore.nimble".slurp var - file*, address*, version*, appname*: string - port*: int + file* = "data.db" + address* = "127.0.0.1" + appname* = "LiteStore" + port* = 9500 + version*: string f = newStringStream(cfgfile) if f != nil:

@@ -22,14 +26,6 @@ of cfgKeyValuePair:

case e.key: of "version": version = e.value - of "appame": - appname = e.value - of "port": - port = e.value.parseInt - of "address": - address = e.value - of "file": - file = e.value else: discard of cfgError:
M litestore.nimblelitestore.nimble

@@ -6,11 +6,5 @@ description = "Self-contained, lightweight, RESTful document store."

license = "MIT" bin = "litestore" -[Defaults] -appame = "LiteStore" -file = "data.db" -address = "127.0.0.1" -port = 9500 - [Deps] requires: "nimrod >= 0.11.2"