get_datatype_with_variants

felis.metadata.get_datatype_with_variants(column_obj)

Use the Felis type system to get a SQLAlchemy datatype with variant overrides from the information in a Felis column object.

Parameters:

column_obj (Column) – The column object from which to get the datatype.

Returns:

The SQLAlchemy datatype object.

Return type:

TypeEngine

Raises:

ValueError – Raised if the column has a sized type but no length or if the datatype is invalid.