Module

x/pg_mem/transforms/selection.ts>Selection

An in memory postgres DB instance for your unit tests
Latest
class Selection
implements _ISelection
extends TransformBase
import { Selection } from "https://dotland.deno.dev/x/pg_mem@3.0.3/transforms/selection.ts";

Constructors

new
Selection(base: _ISelection, _columns: (SelectedColumn | CustomAlias)[])

Properties

private
columnIds: string[]
private
columnMapping: Map<IValue, IValue>
private
columnsById: Map<string, IValue[]>
private
columnsOrigin: IValue[]
private
indexCache: Map<IValue, _IIndex>
private
symbol: symbol
readonly
columns: IValue[]

Methods

private
refColumn(fromCol: IValue, alias: string)
build(item: any, t: _Transaction): Row
enumerate(t: _Transaction): Iterable<Row>
getColumn(column: string | ExprRef): IValue
getColumn(column: string | ExprRef, nullIfNotFound?: boolean): IValue | nil
hasItem(value: Row, t: _Transaction): boolean