Module pure

Source
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Β§

ExprContainsTemporalVisitor πŸ”’
Determines whether the AST involves mz_now().
MzNowPurifierVisitor πŸ”’
PurifiedSourceExport
RequestedSourceExport πŸ”’
Schema

EnumsΒ§

PurifiedExportDetails
PurifiedStatement
SourceFormatOptions πŸ”’
SourceReferencePolicy πŸ”’
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 for AlterSourceStatement.
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 SQL COMMENTs 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.