summary refs log tree commit diff stats
path: root/lib/std/private
diff options
context:
space:
mode:
authorringabout <43030857+ringabout@users.noreply.github.com>2022-12-06 22:37:16 +0800
committerGitHub <noreply@github.com>2022-12-06 22:37:16 +0800
commit9ba07edb2ec7fcdd628cfa7155c4853160ebd5c3 (patch)
tree4ae00008d9604bf997350f72f89cea60338c91b6 /lib/std/private
parent4ca2dcb404aa1b92900e838790d5df554fc0cb9a (diff)
downloadNim-9ba07edb2ec7fcdd628cfa7155c4853160ebd5c3.tar.gz
build the documentation of official packages (#20986)
* remove db stuffs

* remove punycode

* remove

* fixes script

* add cloner

* patches

* disable

* patch

* fixes external packages

* disable two packages

* preview documentation build

* try again

* fixes URL

* fixes a bug

* simplify

* fixes documentaion

* fixes

* Apply suggestions from code review
Diffstat (limited to 'lib/std/private')
-rw-r--r--lib/std/private/dbutils.nim15
1 files changed, 0 insertions, 15 deletions
diff --git a/lib/std/private/dbutils.nim b/lib/std/private/dbutils.nim
deleted file mode 100644
index 0ae3b3702..000000000
--- a/lib/std/private/dbutils.nim
+++ /dev/null
@@ -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