I am trying to generate documentation for a database created with sqlalchemy, and want to include column SQL data types, which are dependent on the current engine. Is there any way to extract this from sqlalchemy? I tried following the metadata.create_all(engine) rabbit hole but quickly got lost.
Essentially what I'm after is a mapping:
{
'Integer': 'INT',
'String': 'VARCHAR',
...
}
which is specific to the current engine and takes a sqlalchemy type to a SQL data type.