function queryAllPrimary
queryAllPrimary<T>(statement: SqlStatement): Promise<T[]>

queryAll for a caller that must read its own writes. The same rows, pinned to the primary, because a replica can lag behind the write and miss them. See queryBatchPrimary. It takes the statement whole, which is the shape a batch runs, so a caller that holds one hands it over as it is.

Type Parameters

Parameters

statement: SqlStatement

Return Type

Promise<T[]>

Usage

import { queryAllPrimary } from "docs/database.ts";