1. Skip to navigation
  2. Skip to content

Getting a SqlAlchemy Quoted Name

Just because I spent so much time tracking it down, you can get the SqlAlchemy database-dependent quoted name for a column by doing:


>>> metadata.bind.dialect.identifier_preparer.quote_identifier("test")
'"test"'
>>>