Represents the "strict" column type definition for a scalar column.
Of the example format:
columns: { uuidCol: { type: 'uuid' }, textCol: { type: 'text' },} Copy
columns: { uuidCol: { type: 'uuid' }, textCol: { type: 'text' },}
If you prefer, you can use the shorthand "loose" syntax instead, which is equivalent to the above:
columns: { uuidCol: 'uuid', textCol: 'text',} Copy
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.
StrictCreateTableColumnDefinition
Overview
Represents the "strict" column type definition for a scalar column.
Of the example format:
The "loose" syntax
If you prefer, you can use the shorthand "loose" syntax instead, which is equivalent to the above:
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