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Β§
- Dependent
Sink - 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
NULLpolicy 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 CONNECTIONSQL 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_strategycolumn of a cluster query row. ANULLcolumn 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.