Xqlite.Schema.ColumnInfo (Xqlite v0.7.0)
View SourceInformation about a specific column in a table, corresponding to PRAGMA table_info.
Summary
Types
@type t() :: %Xqlite.Schema.ColumnInfo{ column_id: integer(), declared_type: String.t(), default_value: String.t() | nil, hidden_kind: Xqlite.Schema.Types.column_hidden_kind(), name: String.t(), nullable: boolean(), primary_key_index: non_neg_integer(), type_affinity: Xqlite.Schema.Types.type_affinity() }
Struct definition.
:column_id- The zero-indexed ID of the column within the table.:name- Name of the column.:type_affinity- The resolved data type affinity (seet:Types.type_affinity/0).:declared_type- The original data type string exactly as declared in theCREATE TABLEstatement (e.g., "VARCHAR(50)", "INTEGER", "BOOLEAN").:nullable-trueif the column allows NULL values,falseotherwise (derived fromNOT NULLconstraint).:default_value- The default value expression as a string literal (e.g., "'default'", "123", "CURRENT_TIMESTAMP"), ornilif no default.:primary_key_index- If this column is part of the primary key, its 1-based index within the key (e.g., 1 for single PK, 1 or 2 for compound PK).0if not part of the primary key.:hidden_kind- Indicates if and how a column is hidden/generated (seet:Types.column_hidden_kind/0).