SqlColumnMetadata
¶
Source code in docs_src/capo_context/types/sql_column_metadata.py
name
instance-attribute
¶
name: SqlColumnName
The column name or alias as the engine reports it. Not unique: SELECT a.id, b.id returns two id columns.
precision
instance-attribute
¶
precision: NotRequired[int]
DECIMAL: total digits. TIME and TIMESTAMP: fractional-second digits.
time_zone
instance-attribute
¶
time_zone: NotRequired[SqlTimeZone]
TIMESTAMP only: set when the engine stores an instant, for example UTC.
type
instance-attribute
¶
type: SqlType
The column's portable SQL type. It fixes which SqlValue member the column's values use.
type_name
instance-attribute
¶
type_name: SqlTypeName
The engine's own type, for example Timestamp(MICROSECOND, UTC) or Decimal(12, 2, 128).