Expand description
MySQL utilities for SQL purification.
StructsΒ§
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