Module

x/pg_mem/transforms/selection.ts>Selection

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

Constructors

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

Type Parameters

optional
T = any

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): T
enumerate(t: _Transaction): Iterable<T>
getColumn(column: string | ExprRef): IValue
getColumn(column: string | ExprRef, nullIfNotFound?: boolean): IValue | nil
hasItem(value: T, t: _Transaction): boolean