Skip to content

Instantly share code, notes, and snippets.

@yyscamper
Last active December 12, 2019 10:35
Show Gist options
  • 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:[email protected]: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