interface TableProjection

Type Parameters

Row
Columns extends ProjectionColumns<Row>

Properties

readonly
columns: Columns
columnsSql: (alias?: string) => string
queryAll: TableProjectionQuery<SelectedTableProjectionRow<Row, Columns>[]>
queryOne: TableProjectionQuery<SelectedTableProjectionRow<Row, Columns> | null>
read: (
rowId?: unknown,
) => Promise<SelectedTableProjectionRow<Row, Columns>>
readAll: (rows: StoredTableProjectionRow<Row, Columns>[]) => Promise<SelectedTableProjectionRow<Row, Columns>[]>

Usage

import { type TableProjection } from "doc.ts";