prestodb / presto-python-client

Python DB-API client for Presto
Apache License 2.0
239 stars 87 forks source link

Mogrification #112

Open keithpenrod opened 3 years ago

keithpenrod commented 3 years ago

Is there any kind of mogrification/string cleaning when formatting strings?

For example, I want to execute a query like INSERT INTO table VALUES (string_value) with psycopg2, I understand it does the mogrify method to clean the string up before executing the query (eg, to prevent sql injection). Is there a way to do that with prestodb?