Condividi tramite


DatabaseColumn Class

A database column resource.

Variables are only populated by the server, and will be ignored when sending a request.

Constructor

DatabaseColumn(*, column_type: str | _models.ColumnDataType | None = None, temporal_type: str | _models.TableTemporalType | None = None, memory_optimized: bool | None = None, is_computed: bool | None = None, **kwargs: Any)

Keyword-Only Parameters

Name Description
column_type

The column data type. Known values are: "image", "text", "uniqueidentifier", "date", "time", "datetime2", "datetimeoffset", "tinyint", "smallint", "int", "smalldatetime", "real", "money", "datetime", "float", "sql_variant", "ntext", "bit", "decimal", "numeric", "smallmoney", "bigint", "hierarchyid", "geometry", "geography", "varbinary", "varchar", "binary", "char", "timestamp", "nvarchar", "nchar", "xml", "sysname", and "int".

Default value: None
temporal_type

The table temporal type. Known values are: "NonTemporalTable", "HistoryTable", and "SystemVersionedTemporalTable".

Default value: None
memory_optimized

Whether or not the column belongs to a memory optimized table.

Default value: None
is_computed

Whether or not the column is computed.

Default value: None

Variables

Name Description
id
str

Resource ID.

name
str

Resource name.

type
str

Resource type.

column_type

The column data type. Known values are: "image", "text", "uniqueidentifier", "date", "time", "datetime2", "datetimeoffset", "tinyint", "smallint", "int", "smalldatetime", "real", "money", "datetime", "float", "sql_variant", "ntext", "bit", "decimal", "numeric", "smallmoney", "bigint", "hierarchyid", "geometry", "geography", "varbinary", "varchar", "binary", "char", "timestamp", "nvarchar", "nchar", "xml", "sysname", and "int".

temporal_type

The table temporal type. Known values are: "NonTemporalTable", "HistoryTable", and "SystemVersionedTemporalTable".

memory_optimized

Whether or not the column belongs to a memory optimized table.

is_computed

Whether or not the column is computed.