Expand description
SQL purification.
See the crate-level documentation for details.
Modules§
- error π
- MySQL utilities for SQL purification.
- Postgres utilities for SQL purification.
- references π
Structs§
- Determines whether the AST involves
mz_now()
. - MzNow
Purifier πVisitor
Enums§
- Source
Format πOptions - Defines whether purification should enforce that at least one valid source reference is provided on the provided statement.
Constants§
- MZ_
NOW_ πNAME - MZ_
NOW_ πSCHEMA
Functions§
- compile_
proto πCollect protobuf message descriptor from CSR and compile the descriptor. - for_
each_ πformat Runs a function on each format within the format specifier. - Returns true if the MaterializedViewOption either already involves
mz_now()
or will involve after purification. - purify_
alter_ πsource On success, returns the details on new subsources and updated βoptionsβ that sequencing expects for handlingALTER SOURCE
statements. - Equivalent to
purify_create_source
but forAlterSourceStatement
. - Purifies a CREATE MATERIALIZED VIEW statement. Additionally, it adjusts
resolved_ids
if references to ids appear or disappear during the purification. - purify_
create_ πsink Checks that the sink described in the statement can connect to its external resources. - Injects
DOC ON
comments into all Avro formats that are using a schema registry by finding all SQLCOMMENT
s that are attached to the sinkβs underlying materialized view (as well as any types referenced by that underlying materialized view). - purify_
create_ πsource - purify_
source_ πformat - Purifies a statement, removing any dependencies on external state.
- Generates a subsource name by prepending source schema name if present
- Validates the requested subsources do not have name conflicts with each other and that the same upstream table is not referenced multiple times.