Function sql::normalize::create_statement[][src]

pub fn create_statement(
    scx: &StatementContext<'_>,
    stmt: Statement<Raw>
) -> Result<String, Error>
Expand description

Normalizes a CREATE statement.

The resulting statement will not depend upon any session parameters, nor specify any non-default options (like MATERIALIZED, IF NOT EXISTS, etc).

The goal is to construct a backwards-compatible description of the object. SQL is the most stable part of Materialize, so SQL is used to describe the objects that are persisted in the catalog.