UNPKG

pg-mem

Version:

A memory version of postgres

29 lines 1.3 kB
import { TransformBase } from './transform-base'; import { _Transaction, IValue, _Explainer, _ISelection, _SelectExplanation, Stats, nil, _IAlias, Row } from '../interfaces-private'; import { ExprRef } from 'pgsql-ast-parser'; export declare function buildAlias(on: _ISelection, alias?: string): _ISelection; export declare class Alias extends TransformBase implements _IAlias { name: string; private oldToThis; private thisToOld; private _columns; private asRecord; get isExecutionWithNoResult(): boolean; constructor(sel: _ISelection, name: string); listSelectableIdentities(): Iterable<IValue>; rebuild(): void; selectAlias(alias: string): _IAlias | nil; listColumns(): Iterable<IValue>; get debugId(): string | undefined; get columns(): ReadonlyArray<IValue>; init(): void; stats(t: _Transaction): Stats | null; enumerate(t: _Transaction): Iterable<Row>; hasItem(value: Row, t: _Transaction): boolean; getColumn(column: string | ExprRef): IValue; getColumn(column: string | ExprRef, nullIfNotFound?: boolean): IValue | nil; private _getColumn; explain(e: _Explainer): _SelectExplanation; getIndex(...forValue: IValue[]): nil | import("../interfaces-private")._IIndex; } //# sourceMappingURL=alias.d.ts.map