This project is archived and is in readonly mode.

#209 open
Alex Shafer

Create escape literal method

Reported by Alex Shafer | 2014-04-21 01:58:54 UTC | 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

    Daniele Varrazzo 2014-04-21 09:37:51 UTC

    • 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 ยป

WARNING: the informations in this tracker are archived. Please submit new tickets or comments to the new tracker.


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.

Shared Ticket Bins

Pages