Skip to content

Instantly share code, notes, and snippets.

@yyscamper
Last active December 12, 2019 10:35
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yyscamper/a73ed02bd54d6d813ed8d6a415ca9bdb to your computer and use it in GitHub Desktop.
Save yyscamper/a73ed02bd54d6d813ed8d6a415ca9bdb to your computer and use it in GitHub Desktop.
SQLAlchemy Postgresql Quote Identifier
from sqlalchemy import create_engine
engine = create_engine('postgresql://user:passwd@127.0.0.1:5432/dbname')
engine.dialect.identifier_preparer.quote('table')
engine.dialect.identifier_preparer.quote_identifier('table')
@rightfold
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment