Module mysql

Source
Expand description

MySQL utilities for SQL purification.

StructsΒ§

MySqlExportStatementValues πŸ”’
PurifiedSourceExports πŸ”’

StaticsΒ§

MYSQL_DATABASE_FAKE_NAME πŸ”’
The name of the fake database that we use for MySQL sources to fit our model of a 3-layer catalog. MySQL doesn’t have a concept of databases AND schemas, it treats both as the same thing.

FunctionsΒ§

external_reference_to_table πŸ”’
Convert an unresolved item name to a qualified table reference.
generate_create_subsource_statements
generate_source_export_statement_values πŸ”’
map_column_refs πŸ”’
Map a list of column references to a map of table references to column names.
normalize_column_refs πŸ”’
Normalize column references to a sorted, deduplicated options list of column names.
purify_source_exports πŸ”’
references_system_schemas πŸ”’
Checks if the requested external references contain any explicit references to system schemas, since these are otherwise default excluded when retrieving tables from MySQL.
validate_requested_references_privileges πŸ”’