Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/pg_mem/transforms/alias.ts>Alias

An in memory postgres DB instance for your unit tests
Latest
class Alias
implements _IAlias
extends TransformBase
import { Alias } from "https://deno.land/x/pg_mem@3.0.3/transforms/alias.ts";

Constructors

new
Alias(sel: _ISelection, name: string)

Properties

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

Methods

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