The name of the schema item.
Protected
columnsMapping of column name to column schemata.
Protected
constraintsMapping of constraint name to constraint schemata.
Protected
dirtyTrue if the schema has been modified since created/loaded.
Protected
existsTrue if this resource exists, in some form, in the schema.
Protected
indexesMapping of index name to index schemata.
Readonly
nameThe name of the schema item.
Optional
originalIf the resource exists in the schema, the unaltered values it has.
Protected
shouldWhether or not the schema item should be dropped.
exists
- drop if existsProtected
Optional
shouldThe name the schema item should have if renaming.
Protected
shouldIf true, apply IF NOT EXISTS syntax.
Add a new check constraint with the given expression.
Protected
cloneGet a new instance of the concrete implementation of this class.
Clone the properties of this resource to a different instance.
Add a column to this table.
Optional
callback: ParameterizedCallback<ColumnBuilder>Add a constraint to this table.
Optional
callback: ParameterizedCallback<ConstraintBuilder>Mark the resource to be removed.
Mark a column to be dropped.
Mark the resource to be removed, if it exists.
Mark an index to be dropped.
Used internally.
Mark that the resource exists in the schema in some form,
and reset the dirty
flag.
Get the columns defined on this table.
Get the constraints defined on this table.
Get the indices defined on this table.
Protected
getProtected
Generate a programmatically-incrementing constraint name.
Mark the resource to use IF NOT EXISTS syntax.
Add an index to this table.
Optional
callback: ParameterizedCallback<IndexBuilder>Build and apply a pipeline.
Add a primary key (column & index) to this table.
Rename the resource to a different name.
Mark a column to be renamed.
Mark an index to be renamed.
Add a new unique constraint for the given fields.
Rest
...fields: string[]
Builder to specify the schema of a table.