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 π
- source_
preparation π - sql_
server
StructsΒ§
- Create
Source πPreparation - CsrAvro
Preparation π - CsrProtobuf
Preparation π - Expr
Contains πTemporal Visitor - Determines whether the AST involves
mz_now(). - Glue
Avro πPreparation - MzNow
Purifier πVisitor - Prepared
Create πSource - Purified
Source Export - Requested
Source πExport - Schema
- Schema
With πReferences - Result of fetching a schema, including any referenced schemas.
- Source
Preparation - Statement-local external results, reusable only for matching current requests.
- Source
Preparation Request - An external request derived from the current catalog and submitted statement.
- Source
Preparation Response - An external completion whose success or failure must be checked against current inputs.
- Table
From πSource Preparation
EnumsΒ§
- Alter
Source πPreparation - Catalog-derived inputs of upstream reads for
ALTER SOURCE ... ADD SUBSOURCESandREFRESH REFERENCES. - Filter
Constraints π - Prepared
Source πConnection - Purified
Export Details - Purified
Statement - Source
Format πOptions - Source
Preparation Status - The result of resolving source preparation against a catalog.
- Source
Reference πPolicy - Defines whether purification should enforce that at least one valid source reference is provided on the provided statement.
- Statement
Source - The existing source a statement drives, and how the statement uses it.
ConstantsΒ§
- MZ_
NOW_ πNAME - MZ_
NOW_ πSCHEMA
FunctionsΒ§
- compile_
proto π - Collect protobuf message descriptor from CSR and compile the descriptor.
- execute_
alter_ πsource_ preparation - execute_
create_ πsource_ preparation - execute_
table_ πfrom_ source_ preparation - finish_
table_ πfrom_ source - for_
each_ πformat - Runs a function on each format within the format specifier.
- generate_
progress_ subsource_ statement - Generates a progress subsource, choosing an available name in the supplied catalog.
- 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. - prepare_
alter_ πsource - prepare_
csr_ πconnection_ avro - prepare_
csr_ πconnection_ proto - prepare_
glue_ πconnection_ avro - prepare_
table_ πfrom_ source - purify_
alter_ πsource_ add_ subsources - purify_
alter_ πsource_ refresh_ references - purify_
create_ materialized_ view_ options - Purifies a CREATE MATERIALIZED VIEW statement. Additionally, it adjusts
resolved_idsif 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 ONcomments into all Avro formats that are using a schema registry by finding all SQLCOMMENTs that are attached to the sinkβs underlying materialized view (as well as any types referenced by that underlying materialized view). - 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
- statement_
source - Resolves the existing source that
stmtdrives, mirroring how the purification paths below resolve it themselves. - 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.