Interface ScalarCreateTableColumnDefinition

Overview

Represents the "strict" column type definition for a scalar column.

Of the example format:

columns: {
uuidCol: { type: 'uuid' },
textCol: { type: 'text' },
}
The "loose" syntax

If you prefer, you can use the shorthand "loose" syntax instead, which is equivalent to the above:

columns: {
uuidCol: 'uuid',
textCol: 'text',
}

The only difference is that the "loose" syntax does not statically enforce the type of the column, whereas the "strict" syntax does.

However, the loose syntax still provides autocomplete for the scalar types' names.

See

StrictCreateTableColumnDefinition

interface ScalarCreateTableColumnDefinition {
    type: TableScalarType;
}

Properties

Properties