Module mz_client

Source

Functions§

check_error 🔒
The SQL_STATEMENT_NOT_YET_COMPLETE error will surface if we query a view in Materialize before data exists for that view. It is common to hit this error just after creating a view, particularly in testing or demo code.
client
Create and return a new PostgreSQL client, spawning off the connection object along the way.
delay_for 🔒
Limit the queries per second against a view in Materialize.
drop_index
Delete an index
drop_source
Delete a source and all dependent views, if the source exists
drop_table
Delete a table and all dependent views, if the table exists
execute
Run PostgreSQL’s execute function
show_sources
Run Materialize’s SHOW SOURCES command
try_query
Try running PostgresSQL’s query function, checking for a common Materialize error in check_error.
try_query_one
Try running PostgreSQL’s query_one function, checking for a common Materialize error in check_error.