ecto_sqlite3 icon indicating copy to clipboard operation
ecto_sqlite3 copied to clipboard

Add support for placeholders

Open kevinlang opened this issue 3 years ago • 1 comments

This will likely require support from exqlite for named paramters: https://www.sqlite.org/c3ref/bind_blob.html

Exqlite will need to handle taking in a parameter name and finding the correct parameter index via sqlite3_bind_parameter_index() when it does its binding, if I am understanding correctly.

kevinlang avatar Apr 04 '21 23:04 kevinlang

I don't understand what placeholders are supposed to be. Other than the named ?1 within the prepared statements. That said, exposing those bindings cleanly will be pretty easy.

warmwaffles avatar Apr 05 '21 01:04 warmwaffles