Skip to content
Discussion options

You must be logged in to vote

Yes, the api has changed in the 0.9 version (which has not been officially released yet). This has basically everything to do with sql injections. (If you don't know what this is, I'd recommend reading about it here.) Before and after this change SQLx doesn't sanitize your query, it does not look at the structure, does not parse/inspect the query, it never has and still doesn't. So if users can influence your queries (by using format!(...) to generate queries for example), sqlx doesn't help you against sql injections.

With the changes, SQLx makes it possible for the user to give an owned query as input (a String for example), this was not possible before. Now having a String as an argumen…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@tyrsday29
Comment options

Answer selected by tyrsday29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants