mz_postgres_util::query

Function simple_query_opt

Source
pub async fn simple_query_opt(
    client: &Client,
    query: &str,
) -> Result<Option<SimpleQueryRow>, PostgresError>
Expand description

Runs the given query using the client and expects at most a single row to be returned.