From 044c4a90211bb8ddeb6ca5a4af555e696c7a5500 Mon Sep 17 00:00:00 2001 From: Richard Ramos Date: Fri, 23 Oct 2020 08:49:55 -0400 Subject: [PATCH] Uncomment prepared statements execution --- sqlcipher.nim | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sqlcipher.nim b/sqlcipher.nim index 3b4abfb..63af0ac 100644 --- a/sqlcipher.nim +++ b/sqlcipher.nim @@ -170,6 +170,7 @@ proc `$`*(dbVal: DbValue): string = of sqliteBlob: result.add "" of sqliteNull: result.add "nil" result.add "]" +]# proc exec*(db: DbConn, sql: string, params: varargs[DbValue, toDbValue]) = ## Executes ``sql`` and raises SqliteError if not successful. @@ -178,6 +179,7 @@ proc exec*(db: DbConn, sql: string, params: varargs[DbValue, toDbValue]) = defer: prepared.finalize() discard prepared.next +#[ # TODO: uncomment and test proc execMany*(db: DbConn, sql: string, params: seq[seq[DbValue]]) = ## Executes ``sql`` repeatedly using each element of ``params`` as parameters.