Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upSupport for prepared statements in SQLite #1117
Comments
killercup
added
the
sqlite
label
Aug 18, 2017
This comment has been minimized.
|
I'm not sure what you're asking for? You can provide bind parameters to a query using the |
This comment has been minimized.
Boscop
commented
Aug 18, 2017
|
Ah, I didn't know that. Thanks! |
Boscop
closed this
Aug 18, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Boscop commentedAug 18, 2017
•
edited
SQLite prepared statements (e.g. for preventing SQL injection) can only be defined via the C API, not in raw sql like in postgres. So it can't be done with diesel's
sqlfunction:https://sqlite.org/c3ref/stmt.html
http://jgallagher.github.io/rusqlite/rusqlite/struct.Statement.html