Skip to main content

Module column_declarations

Module column_declarations 

Source
Expand description

The checks transformColumnDefinition makes of a column definition once transformCreateStmt or transformAlterTableStmt has found the relation: an array of SERIAL before the column’s type is looked up, then the placement of constraint attributes, as transformConstraintAttrs checks it, and each clause against the clauses written before it.

Structs§

ColumnDeclarationTarget
The relation a column definition belongs to.

Functions§

check_column_declaration
The attribute placement and clause conflicts transformColumnDefinition reports for column after it looks up the column’s type. A PRIMARY KEY or UNIQUE clause made DEFERRABLE or INITIALLY DEFERRED is reported as unsupported after every other check of the statement passes, so the result says whether the column writes one.
check_foreign_column_declaration
The same ordered checks for a foreign-table column. Unsupported keys are reported at their clause, after attribute placement and any preceding conflicts.
check_serial_array
array of serial is not implemented, which transformColumnDefinition reports before it looks up the column’s type.