Closed penberg closed 2 weeks ago
I have been looking at this issue and I just want to make sure I am understanding correct.
The below named parameter query does work libsql when a NamedArg
is used as the arg.
db.exec("INSERT INTO "+t.name+" (a, b) VALUES ($Arg1, $Arg2)", sql.Named("Arg1", i), sql.Named("Arg2", i))
I have submitted a pull request to add tests for the three types of named parameters. #101
The only missing parameter template was positional parameter with indexes. I have opened a PR to add support for it.
From Discord:
Let's add support for all the parameter templates:
https://www.sqlite.org/lang_expr.html#parameters