TTableMetadata Class
Describes a database table, including its columns, primary-key columns, unique keys, foreign keys, and non-unique indexes.
Syntax
Unit: Aurelius.Sql.Metadata
TTableMetadata = class(TMetadataInfo);
Constructors
| Name | Description |
|---|---|
| Create | Creates a TTableMetadata associated with the given database metadata. |
Properties
| Name | Description |
|---|---|
| Columns | Gets the list of all columns in the table. |
| Database | Gets the database metadata that owns this table. |
| DBIndexes | Gets the list of non-unique indexes defined on the table. |
| ForeignKeys | Gets the list of foreign key constraints defined on the table. |
| IdColumns | Gets the list of columns that form the primary key of the table. |
| Name | Gets or sets the table name as it appears in the database. |
| Schema | Gets or sets the schema that qualifies the table name, or an empty string if no schema applies. |
| UniqueKeys | Gets the list of unique key constraints defined on the table. |