function listingStatement
listingStatement(query: GetListingsQuery): { sql: string; args: InValue[]; }

A queryBatch statement (SQL + bound args) for a listing read: the single place a declared query becomes runnable SQL. getListingRows runs it; the activity-log reader embeds it in a batch, and the read-your-own-write reader runs it against the primary.

Parameters

Return Type

{ sql: string; args: InValue[]; }

Usage

import { listingStatement } from "doc.ts";