TColumnMetadata Class
Describes a single column in a database table, including its name, data type, size, nullability, and whether the database generates its value automatically.
Syntax
Unit: Aurelius.Sql.Metadata
TColumnMetadata = class(TMetadataInfo);
Constructors
| Name | Description |
|---|---|
| Create | Creates a TColumnMetadata associated with the given table. |
Properties
| Name | Description |
|---|---|
| AutoGenerated | Indicates whether the column value is generated automatically by the database server (identity or autoincrement column). |
| DataType | Gets or sets the database-specific type name string (e.g., 'VARCHAR', 'INTEGER') used in DDL generation. |
| Length | Gets or sets the maximum length (in characters or bytes) of the column. |
| Name | Gets or sets the column name as it appears in the database. |
| NotNull | Indicates whether the column has a NOT NULL constraint. |
| Precision | Gets or sets the total number of significant digits for numeric columns. |
| Scale | Gets or sets the number of digits to the right of the decimal point for numeric columns. |
| Table | Gets the table that owns this column. |