Column#
- class lsst.dax.apdb.schema_model.Column(name: str, id: str, datatype: ~felis.datamodel.DataType | ~lsst.dax.apdb.schema_model.ExtraDataTypes, length: int | None = None, nullable: bool = True, value: ~typing.Any = None, autoincrement: bool | None = None, description: str | None = None, annotations: ~collections.abc.Mapping[str, ~typing.Any] = <factory>, table: ~lsst.dax.apdb.schema_model.Table | None = None)#
Bases:
objectColumn representation in schema.
Attributes Summary
Additional annotations for this column.
Unspecified value results in
None.Column type, one of the enums defined in DataType.
Column description.
Felis ID for this column.
Optional length for string/binary columns
Column name.
True for nullable columns.
Table which defines this column, usually not
None.Default value for column, can be
None.Methods Summary
clone()Make a clone of self.
from_felis(dm_column)Convert Felis column definition into instance of this class.
size()Return size in bytes of this column.
Attributes Documentation
- annotations: Mapping[str, Any] = <dataclasses._MISSING_TYPE object>#
Additional annotations for this column.
- autoincrement: bool | None = None#
Unspecified value results in
None.
- datatype: DataType | ExtraDataTypes = <dataclasses._MISSING_TYPE object>#
Column type, one of the enums defined in DataType.
- description: str | None = None#
Column description.
- id: str = <dataclasses._MISSING_TYPE object>#
Felis ID for this column.
- length: int | None = None#
Optional length for string/binary columns
- name: str = <dataclasses._MISSING_TYPE object>#
Column name.
- nullable: bool = True#
True for nullable columns.
- value: Any = None#
Default value for column, can be
None.
Methods Documentation