function queryOnePrimary
queryOnePrimary<T>(
sql: string,
args: InValue[],
): Promise<T | null>

Query an optional row on the primary — the singular of queryAllPrimary, as queryOne is of queryAll. args is required here: every read-back keys on the row the write just made.

Type Parameters

Parameters

sql: string
args: InValue[]

Return Type

Promise<T | null>

Usage

import { queryOnePrimary } from "doc.ts";