Skip to main content

column_decl_with_implicit

Function column_decl_with_implicit 

Source
pub fn column_decl_with_implicit(
    table_name: &str,
    col: &ColumnDef,
    implicit: &Implicit,
) -> String
Expand description

Render a column declaration plus every implicit spec derived from the parent table (PRIMARY KEY -> NOT NULL + UNIQUE, FOREIGN KEY, SERIAL / IDENTITY -> NOT NULL + auto-increment). The result is the “full spec view” – declared + implicit, in one table.