Class MysqlColumn (1.2.2)

MysqlColumn(mapping=None, *, ignore_unknown_fields=False, **kwargs)

MySQL Column.

Attributes

NameDescription
column_name str
Column name.
data_type str
The MySQL data type. Full data types list can be found here: https://dev.mysql.com/doc/refman/8.0/en/data-types.html
length int
Column length.
collation str
Column collation.
primary_key bool
Whether or not the column represents a primary key.
nullable bool
Whether or not the column can accept a null value.
ordinal_position int
The ordinal position of the column in the table.