Skip to main content

check_column_declaration

Function check_column_declaration 

Source
pub fn check_column_declaration(
    declaration: &ColumnDeclaration,
    column: &str,
    target: ColumnDeclarationTarget<'_>,
) -> Result<bool, SQLError>
Expand description

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.