Skip to main content

fetch_optional_row_scoped

Function fetch_optional_row_scoped 

Source
pub async fn fetch_optional_row_scoped<'q>(
    pool: &PgPool,
    query: Query<'q, Postgres, PgArguments>,
) -> Result<Option<PgRow>, Error>
Expand description

Tenant-agnostic fetch_optional for an untyped row query — the read twin of execute_scoped, same connection discipline: request-dedicated connection when bound, plain pool otherwise, no scope invented.