GitHub user michalc added a comment to the discussion: Escaping identifiers for 
safe dynamic SQL in Python for PostgreSQL

> In the case of the psycopg sql module you linked to, it appears to have an 
> as_string() method that could generate the full query string which could then 
> be passed to cur.execute(...) with ADBC.

Ah! I was about to say "but as_string requires a very psycopg-y 'context' 
object" but I see it's now optional (and since it's a protocol could also 
construct something more adbc-y if needed...)

Thank you!

GitHub link: 
https://github.com/apache/arrow-adbc/discussions/2856#discussioncomment-13261264

----
This is an automatically sent email for user@arrow.apache.org.
To unsubscribe, please send an email to: user-unsubscr...@arrow.apache.org

Reply via email to