Skip to main content

Module pure

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 πŸ”’
source_preparation πŸ”’
sql_server

StructsΒ§

CreateSourcePreparation πŸ”’
CsrAvroPreparation πŸ”’
CsrProtobufPreparation πŸ”’
ExprContainsTemporalVisitor πŸ”’
Determines whether the AST involves mz_now().
GlueAvroPreparation πŸ”’
MzNowPurifierVisitor πŸ”’
PreparedCreateSource πŸ”’
PurifiedSourceExport
RequestedSourceExport πŸ”’
Schema
SchemaWithReferences πŸ”’
Result of fetching a schema, including any referenced schemas.
SourcePreparation
Statement-local external results, reusable only for matching current requests.
SourcePreparationRequest
An external request derived from the current catalog and submitted statement.
SourcePreparationResponse
An external completion whose success or failure must be checked against current inputs.
TableFromSourcePreparation πŸ”’

EnumsΒ§

AlterSourcePreparation πŸ”’
Catalog-derived inputs of upstream reads for ALTER SOURCE ... ADD SUBSOURCES and REFRESH REFERENCES.
FilterConstraints πŸ”’
PreparedSourceConnection πŸ”’
PurifiedExportDetails
PurifiedStatement
SourceFormatOptions πŸ”’
SourcePreparationStatus
The result of resolving source preparation against a catalog.
SourceReferencePolicy πŸ”’
Defines whether purification should enforce that at least one valid source reference is provided on the provided statement.
StatementSource
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_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_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 stmt drives, 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.