Skip to main content

Module create

Module create 

Source

Structs§

CreateQuery
The following structure represents a CREATE TABLE query already parsed and broken down into name and a Vector of ParsedColumn metadata
ParsedColumn
The schema for each SQL column in every table is represented by the following structure after parsed and tokenized

Functions§

parse_one_column
Parses a single sqlparser ColumnDef into our internal ParsedColumn representation. Extracted from CreateQuery::new so ALTER TABLE ADD COLUMN can reuse the same column-shape parsing without re-implementing the type / constraint / default plumbing.