Replies: 1 comment 3 replies
-
@skyien Thanks for bringing this up! I've drafted a PR here that starts to decouple things from the Let us know if this unblocks you for Postgres support, and please share your progress with us! |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Postgres uses "$n" for placeholders.
"The command string can use parameter values, which are referenced in the command as $1 , $2 , etc. These symbols refer to values supplied in the USING clause. This method is often preferable to inserting data values into the command string as text: it avoids run-time overhead of converting the values to text and back, and it is much less prone to SQL-injection attacks since there is no need for quoting or escaping. An example is:"
SELECT count(*) FROM mytable WHERE inserted_by = $1 AND inserted <= $2
https://www.postgresql.org/docs/current/plpgsql-statements.html
Beta Was this translation helpful? Give feedback.
All reactions