Skip to main content

strip_crdb_table_items

Function strip_crdb_table_items 

Source
fn strip_crdb_table_items(sql: &str) -> Option<String>
Expand description

Removes CockroachDB-specific physical-layout items (INDEX, UNIQUE INDEX, INVERTED INDEX, and FAMILY definitions) from the column list of a CREATE TABLE statement. Constraints are kept, since dropping them would change the statement’s semantics. Returns None if sql does not look like a CREATE TABLE statement.