Cleans up trailing whitespace (missed a file).
Steve Kellock steve@kellock.ca
Tue, 29 Jan 2019 19:17:09 -0500
1 files changed,
17 insertions(+),
17 deletions(-)
jump to
M
src/litestorepkg/lib/types.nim
→
src/litestorepkg/lib/types.nim
@@ -1,12 +1,12 @@
-import - x_db_sqlite, - asynchttpserver, - pegs, +import + x_db_sqlite, + asynchttpserver, + pegs, strtabs import config -type +type EDatastoreExists* = object of Exception EDatastoreDoesNotExist* = object of Exception EDatastoreUnavailable* = object of Exception@@ -15,7 +15,7 @@ EDirectoryNotFound* = object of Exception
EFileNotFound* = object of Exception EFileExists* = object of Exception EInvalidRequest* = object of Exception - uarray* {.unchecked.} [T] = array[0..0, T] + uarray* {.unchecked.} [T] = array[0..0, T] ExecutionData* = object operation*: string file*: string@@ -31,10 +31,10 @@ tables*: seq[string]
jsonFilter*: string jsonSelect*: seq[tuple[path: string, alias: string]] select*: seq[string] - single*:bool - limit*: int - offset*: int - orderby*: string + single*:bool + limit*: int + offset*: int + orderby*: string tags*: string like*: string createdAfter*: string@@ -48,10 +48,10 @@ tag*: string
startswith*: bool endswith*: bool negated*: bool - Operation* = enum - opRun, - opImport, - opExport, + Operation* = enum + opRun, + opImport, + opExport, opDelete, opVacuum, opOptimize,@@ -89,7 +89,7 @@ id: string,
version: string ] -var +var PEG_TAG* {.threadvar.}: Peg PEG_USER_TAG* {.threadvar.}: Peg PEG_DEFAULT_URL* {.threadvar.}: Peg@@ -114,6 +114,6 @@ "Server": LS.appname & "/" & LS.appversion
} proc newQueryOptions*(): QueryOptions = - return QueryOptions(select: @["documents.id AS id", "documents.data AS data", "content_type", "binary", "searchable", "created", "modified"], - single: false, limit: 0, offset: 0, orderby: "", tags: "", search: "", folder: "", like: "", + return QueryOptions(select: @["documents.id AS id", "documents.data AS data", "content_type", "binary", "searchable", "created", "modified"], + single: false, limit: 0, offset: 0, orderby: "", tags: "", search: "", folder: "", like: "", createdAfter: "", createdBefore: "", modifiedAfter: "", modifiedBefore: "", jsonFilter: "", jsonSelect: newSeq[tuple[path: string, alias: string]](), tables: newSeq[string]())