lpil / sqlight

💡 Use SQLite from Gleam!
https://hexdocs.pm/sqlight
79 stars 11 forks source link

`exec` with parameters? #7

Closed sarna closed 5 months ago

sarna commented 5 months ago

How do I pass parameters to exec? Currently the only way I see to execute a statement with arguments is to use query, as there's no stand-alone function to perform safe parametrization of SQL strings.

lpil commented 5 months ago

In SQLite the function to execute a query with parameters is query. exec does not take parameters.