Interface CreateTableDefinition<Def>

The definition for creating a new table through the Data API, using a bespoke schema definition syntax.

See Db.createTable for more info.

interface CreateTableDefinition<Def> {
    columns: CreateTableColumnDefinitions;
    primaryKey: CreateTablePrimaryKeyDefinition<keyof Def["columns"] & string>;
}

Type Parameters

Properties

Properties

The columns to create in the table.

primaryKey: CreateTablePrimaryKeyDefinition<keyof Def["columns"] & string>

The primary key definition for the table.