all repos — litestore @ d031866fcb2675b000a856a3fb022b2e28522ba9

A minimalist nosql document store.

Fixed compiler warnings and regressions.
h3rald h3rald@h3rald.com
Sun, 11 Mar 2018 11:23:47 +0100
commit

d031866fcb2675b000a856a3fb022b2e28522ba9

parent

993e0731828efe3a2a4f04d6a2d05641fcad2263

3 files changed, 5 insertions(+), 3 deletions(-)

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

@@ -133,6 +133,8 @@ options.tables = options.tables & tables

options.jsonFilter = resOrClauses.join(" OR ") proc parseQueryOption*(fragment: string, options: var QueryOptions) = + if fragment == "": + return var pair = fragment.split('=') if pair.len < 2 or pair[1] == "": raise newException(EInvalidRequest, "Invalid query string fragment '$1'" % fragment)
M lib/cli.nimlib/cli.nim

@@ -1,5 +1,5 @@

import - parseopt2, + parseopt, strutils, strtabs import
M lib/logger.nimlib/logger.nim

@@ -7,9 +7,9 @@ types

proc currentTime*(plain = false): string = if plain: - return getTime().getGMTime().format("yyyy-MM-dd' @ 'HH:mm:ss") + return getTime().utc.format("yyyy-MM-dd' @ 'HH:mm:ss") else: - return getTime().getGMTime().format("yyyy-MM-dd'T'HH:mm:ss'Z'") + return getTime().utc.format("yyyy-MM-dd'T'HH:mm:ss'Z'") proc msg(logger: Logger, kind, message: string, params: varargs[string, `$`]) = let s = format(message, params)