Schema.to_sqlalchemy_columns#
- classmethod Schema.to_sqlalchemy_columns(dialect: sa.Dialect) list[sa.Column][source]#
Obtain the SQLAlchemy column definitions for a particular dialect for this schema.
- Parameters:
dialect – The dialect for which to obtain the SQL schema. Note that column datatypes may differ across dialects.
- Returns:
A list of
sqlalchemycolumns that can be used to create a table with the schema as defined by this class.