stdlib final cleanup

This commit is contained in:
ringabout
2022-12-01 22:54:04 +08:00
parent 911e302d37
commit 3eddba8b5e
22 changed files with 1 additions and 8453 deletions

View File

@@ -1,15 +0,0 @@
import db_common
template dbFormatImpl*(formatstr: SqlQuery, dbQuote: proc (s: string): string, args: varargs[string]): string =
var res = ""
var a = 0
for c in items(string(formatstr)):
if c == '?':
if a == args.len:
dbError("""The number of "?" given exceeds the number of parameters present in the query.""")
add(res, dbQuote(args[a]))
inc(a)
else:
add(res, c)
res