Skip to main content

fetch_all_rows_scoped

Function fetch_all_rows_scoped 

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

Tenant-agnostic fetch_all for an untyped row query — the set-returning sibling of fetch_optional_row_scoped, same connection discipline: request-dedicated connection when bound, plain pool otherwise, no scope invented. Reads that must ride the request connection (a bare-pool read under a decorated deployment lands on a fresh connection with no fence variables and returns nothing) but owe no company predicate reach for this, not the company-scoped helpers.