Skip to main content

Module postgres

Module postgres 

Source
Expand description

Postgres utilities for SQL purification.

Modulesยง

privileges ๐Ÿ”’
replica_identity ๐Ÿ”’

Structsยง

PostgresExportStatementValues ๐Ÿ”’
PurifiedSourceExports ๐Ÿ”’

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 CastFunc variant. Returns:
purify_source_exports ๐Ÿ”’
resolve_pg_type_to_scalar_type ๐Ÿ”’
Resolve a PG type to its corresponding SqlScalarType via 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 COPY from a table while snapshotting, we break the entire source.