Function mz_sql::normalize::create_statement
source ยท pub fn create_statement(
scx: &StatementContext<'_>,
stmt: Statement<Aug>,
) -> Result<String, PlanError>
Expand description
Normalizes a CREATE
statement.
The resulting statement will not depend upon any session parameters, nor
specify any non-default options (like TEMPORARY
, IF NOT EXISTS
, etc).
The goal is to construct a backwards-compatible description of the item. SQL is the most stable part of Materialize, so SQL is used to describe the items that are persisted in the catalog.