add bindParams to db_sqlite (#14408)
* add bindParams to db_sqlite * no need typeinfo * remove extro spaces * reduce bindParams to two branches,raise DbError * Update lib/impure/db_sqlite.nim * change bindParams to macro,accept varargs[untyped] as params * change bind blob val to openArray[byte] * remove unused err type * explicitly using i32 param * using import std/private/since * SQLITE_OK to right hand * bindParam val int using bindParam overload * copy data by default * change exec to template * remove SqlPrepared procs unused varargs * fix setupquery for prepared,reset first for exec prepared,add bindNull for literal nil Co-authored-by: alaviss <leorize+oss@disroot.org>
This commit is contained in:
parent
55758920f4
commit
2a4a43b05f
2 changed files with 161 additions and 42 deletions
|
|
@ -3,6 +3,8 @@
|
|||
|
||||
|
||||
## Standard library additions and changes
|
||||
|
||||
- Added `bindParams`, `bindParam` to `db_sqlite` for binding parameters into a `SqlPrepared` statement.
|
||||
- Add `tryInsert`,`insert` procs to db_* libs accept primary key column name.
|
||||
- Added `xmltree.newVerbatimText` support create `style`'s,`script`'s text.
|
||||
- `uri` adds Data URI Base64, implements RFC-2397.
|
||||
|
|
@ -192,4 +194,3 @@ proc mydiv(a, b): int {.raises: [].} =
|
|||
See [docgen](docgen.html#introduction-quick-start) for details.
|
||||
|
||||
## Tool changes
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue