Is there a way to pass parameters to the query as an array/list/tuple? #299
ameetnsharma
started this conversation in
General
Replies: 1 comment 1 reply
-
Hi @ameetnsharma , unfortunately we are now not supporting this feature. The implementation might not be trivial since we need to figure out the type of the parameters from python and pass it to different rust drivers. Anyway, thanks for the suggestion and welcome to help! : ) |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
So this is the type of thing I'm doing:
df = cx.read_sql(f"mysql://{db_username}:{db_password}@{db_host}:3306/{db_name}", query)
where the query is just a raw text query. Works well, but my work superiors are concerned with sql injection and want to be able to pass parameters to the query as a tuple or list... like here:
https://www.psycopg.org/psycopg3/docs/basic/params.html
Is this possible with connectorx? Thanks.
Beta Was this translation helpful? Give feedback.
All reactions