Module

x/pg_mem/transforms/alias.ts>Alias

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

Constructors

new
Alias(sel: _ISelection, name: string)

Properties

private
_columns: IValue<any>[] | null
private
asRecord: IValue
private
oldToThis: Map<IValue, IValue>
private
thisToOld: Map<IValue, IValue>
readonly
columns: ReadonlyArray<IValue<any>>
readonly
debugId
readonly
isExecutionWithNoResult: boolean

Methods

private
_getColumn(column: string | ExprRef): IValue | nil
enumerate(t: _Transaction): Iterable<T>
getColumn(column: string | ExprRef): IValue
getColumn(column: string | ExprRef, nullIfNotFound?: boolean): IValue | nil
getIndex(...forValue: IValue[])
hasItem(value: T, t: _Transaction): boolean
listColumns(): Iterable<IValue>
selectAlias(alias: string): _IAlias | nil