Skip to main content

Module introspection

Module introspection 

Source
Expand description

Read-only catalog introspection queries.

Methods on IntrospectionClient query the mz_catalog and information_schema to inspect the live environment without modifying it. Provides batch existence checks for schemas, clusters, and objects, as well as dependency lookups used during deployment planning and sink repointing.

StructsΒ§

DependentSink
A sink that depends on an object in a schema being dropped.

FunctionsΒ§

auto_scaling_query_parts πŸ”’
SQL fragments (a select expression and a join) that add the configured autoscaling policy to a cluster query. On regions that predate the feature, they yield a NULL policy column instead.
check_catalog_objects_exist πŸ”’
Check which objects from the given set exist in a specific catalog table.
check_clusters_exist πŸ”’
Check which clusters from a set of names exist.
check_connection_exists πŸ”’
Check if a connection exists in the specified database and schema.
check_connections_exist πŸ”’
Check which connections from the given set exist in the database.
check_objects_exist πŸ”’
Check which objects from a set exist in the production database.
check_schemas_exist πŸ”’
Check which schemas from a set of (database, schema) pairs exist.
check_secrets_exist πŸ”’
Check which secrets from the given set exist in the database.
check_sinks_exist πŸ”’
Check which sinks from the given set exist in the database.
check_sources_exist πŸ”’
Check which sources from the given set exist in the database.
check_tables_exist πŸ”’
Check which tables from the given set exist in the database.
cluster_exists πŸ”’
Check if a cluster exists.
drop_objects πŸ”’
Drop specific objects by their ObjectIds.
drop_schema_objects πŸ”’
Drop all objects in a schema.
drop_staging_clusters πŸ”’
Drop staging clusters by name.
drop_staging_schemas πŸ”’
Drop staging schemas by name.
find_sinks_depending_on_schemas πŸ”’
Find sinks that depend on objects in the specified schemas.
get_cluster πŸ”’
Get a cluster by name.
get_cluster_config πŸ”’
Get cluster configuration including replicas and grants.
get_cluster_grants πŸ”’
Get privilege grants on a cluster by name.
get_connection_create_sql πŸ”’
Get the CREATE CONNECTION SQL for an existing connection.
get_current_user πŸ”’
Get the current Materialize user/role.
get_database_object_grants πŸ”’
Get privilege grants on a database object (table, source, secret, connection).
get_default_privilege_grants_for_cluster πŸ”’
Get default privilege grants for a cluster by name.
get_default_privilege_grants_for_database_object πŸ”’
Get default privilege grants for a database object (table, source, secret, connection).
get_default_privilege_grants_for_named_object πŸ”’
Get default privilege grants for a named infrastructure object (cluster, network policy).
get_default_privilege_grants_for_network_policy πŸ”’
Get default privilege grants for a network policy by name.
get_named_object_grants πŸ”’
Get privilege grants on a named infrastructure object (cluster, network policy).
get_network_policy_grants πŸ”’
Get privilege grants on a network policy by name.
get_role_members πŸ”’
Get the members granted to a role.
get_role_parameters πŸ”’
Get session default parameter names for a role.
get_staging_clusters πŸ”’
Get staging cluster names for a specific deployment.
get_staging_schemas πŸ”’
Get staging schema names for a specific deployment.
list_clusters πŸ”’
List all clusters.
mz_type_to_drop_keyword πŸ”’
Map a Materialize object type string to its DROP keyword.
network_policy_exists πŸ”’
Check if a network policy exists.
object_exists πŸ”’
Check if an object (MV, table, source) exists in the specified schema.
parse_auto_scaling_strategy πŸ”’
The cluster’s configured autoscaling policy, read from the auto_scaling_strategy column of a cluster query row. A NULL column means β€œno policy”: the cluster has none, or the region predates the feature.
role_exists πŸ”’
Check if a role exists.
schema_exists πŸ”’
Check if a schema exists in the specified database.