Expand description
Postgres utilities for SQL purification.
Modulesยง
- privileges ๐
- replica_
identity ๐
Structsยง
Functionsยง
- build_
element_ ๐cast_ expr - Build the element cast expression for container types (Array, List, Map, Range). The element expression operates on a single-column input row containing the text-encoded element at column 0.
- generate_
column_ ๐casts - generate_
create_ subsource_ statements - generate_
source_ ๐export_ statement_ values - map_
column_ ๐refs - Map a list of column references to a map of table oids to column names.
- pg_
type_ ๐to_ cast_ func - Map a PG type to the corresponding
CastFuncvariant. Returns: - purify_
source_ ๐exports - resolve_
pg_ ๐type_ to_ scalar_ type - Resolve a PG type to its corresponding
SqlScalarTypevia the catalog. - validate_
requested_ ๐references_ privileges - Ensure that we have select permissions on all tables; we have to do this before we
start snapshotting because if we discover we cannot
COPYfrom a table while snapshotting, we break the entire source.