Skip to content

Supabase escaping strings #29527

Answered by GaryAustin1
sadar asked this question in Questions
Sep 26, 2024 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

You can't call direct SQL with HTTP or the REST clients. You can only use direct SQL with the database ports from a server Postgres library. The SQL code you generate there would need to be handled by you and the library you use as far as injection. For instance here is a discussion on a Python library (each will be different) https://stackoverflow.com/questions/45128902/psycopg2-and-sql-injection-security.

If you generate dynamic SQL statement to execute in the Postgres function then you do need to take care, but otherwise no. https://dba.stackexchange.com/questions/49699/sql-injection-in-postgres-functions-vs-prepared-queries

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@sadar
Comment options

@GaryAustin1
Comment options

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