ISQLGenerator.GenerateCreateTable Method
Generates the DDL statement that creates a database table, optionally including its foreign key constraints.
Syntax
Unit: Aurelius.Sql.Interfaces
function ISQLGenerator.GenerateCreateTable(Table: TTableMetadata; CreateForeignKeys: Boolean): string; virtual; abstract;
Parameters
| <-> | Parameter | Type | Description |
|---|---|---|---|
| Table | TTableMetadata | The metadata describing the table to create. | |
| CreateForeignKeys | Boolean | When True, inline foreign key constraints are included in the CREATE TABLE statement; when False they are omitted. |
Returns
The complete CREATE TABLE DDL statement as a SQL string.