Skip to main content

prepare_create_table_declaration

Function prepare_create_table_declaration 

Source
pub fn prepare_create_table_declaration(
    context: &CreateTableAnalysisContext<'_>,
    c: &mut CreateTable,
    notices: &mut Vec<SQLNotice>,
) -> Result<InheritedDefinitions, SQLError>
Expand description

Describe the new table’s columns before its name is claimed: the parents’ columns merge ahead of the local ones as MergeAttributes merges them, the declared primary key’s columns take their NOT NULL constraints, BuildDescForRelation requires USAGE on every column’s type, and CheckAttributeNamesTypes rejects system column names and pseudo-types.