Module test_util::mz_client[][src]

Functions

check_error

This error ("At least one input has no complete timestamps yet") 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

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.