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§
- Column
Declaration Target - The relation a column definition belongs to.
Functions§
- check_
column_ declaration - The attribute placement and clause conflicts
transformColumnDefinitionreports forcolumnafter 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, whichtransformColumnDefinitionreports before it looks up the column’s type.