This project is archived and is in readonly mode.
Create escape literal method
Reported by Alex Shafer | April 21st, 2014 @ 01:58 AM | in psycopg3
I'm currently attempting to create a high-level query builder specific to my application and I need to manually escape literals so they can be added to the query I'm building.
Comments and changes to this ticket
-
Daniele Varrazzo April 21st, 2014 @ 09:37 AM
- State changed from new to open
- Milestone set to psycopg3
It's in program for psycopg3, not before.
Before that you can create your subclass of string, call it Identifier, create an adapter for it and do the double-quote string escaping. Everything needed is in the documentation.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
<b>WARNING:</b> the informations in this tracker are archived. Please submit new tickets or comments to <a href="https://github.com/psycopg/psycopg2/issues">the new tracker</a>.
<br/>
Psycopg is the most used PostgreSQL adapter for the Python programming language. At the core it fully implements the Python DB API 2.0 specifications. Several extensions allow access to many of the features offered by PostgreSQL.