livebook-dev / kino_db

Database integrations for Livebook
Apache License 2.0
40 stars 16 forks source link

Ignore interpolation and escapes in the generated query string #74

Closed jonatanklosko closed 3 months ago

jonatanklosko commented 3 months ago

Closes https://github.com/elixir-explorer/explorer/issues/949.

Changes the generated code to always use ~S, so that there is no accidental (or mistaken) interpolation and escaping. This makes sense semantically, because the user writes an SQL query, so nothing about it should be interpreted as in Elixir. For interpolation we already have a specific syntax.