Expand description
SQL purification.
See the crate-level documentation for details.
ModulesΒ§
- error π
- mysql
- MySQL utilities for SQL purification.
- postgres
- Postgres utilities for SQL purification.
- references π
- sql_
server
StructsΒ§
- Expr
Contains πTemporal Visitor - Determines whether the AST involves
mz_now()
. - MzNow
Purifier πVisitor - Purified
Source Export - Requested
Source πExport - Schema
EnumsΒ§
- Purified
Export Details - Purified
Statement - Source
Format πOptions - Source
Reference πPolicy - 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.
- generate_
subsource_ statements - get_
remote_ πcsr_ schema - get_
schema_ πwith_ strategy - materialized_
view_ option_ contains_ temporal - 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 handling
ALTER SOURCE
statements. - purify_
alter_ πsource_ add_ subsources - Equivalent to
purify_create_source
but forAlterSourceStatement
. - purify_
alter_ πsource_ refresh_ references - purify_
create_ materialized_ view_ options - 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.
- purify_
create_ πsink_ avro_ doc_ on_ options - 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_
create_ πtable_ from_ source - purify_
csr_ πconnection_ avro - purify_
csr_ πconnection_ proto - purify_
source_ πformat - purify_
source_ πformat_ single - purify_
statement - Purifies a statement, removing any dependencies on external state.
- source_
export_ πname_ gen - Generates a subsource name by prepending source schema name if present
- validate_
source_ πexport_ names - Validates the requested subsources do not have name conflicts with each other and that the same upstream table is not referenced multiple times.