pg-mem
Version:
A memory version of postgres
32 lines • 1.29 kB
TypeScript
import { IValue, _ISelection, _Transaction, _Explainer, _SelectExplanation, Stats, _IIndex, _IType, _IAggregation, Row } from '../interfaces-private';
import { DataSourceBase } from './transform-base';
import { nil } from '../interfaces';
import { ExprRef } from 'pgsql-ast-parser';
export declare function buildUnion(left: _ISelection, right: _ISelection): Union;
interface UCol {
name: string;
type: _IType;
lval: IValue;
rval: IValue;
}
declare class Union extends DataSourceBase {
private cols;
private left;
private right;
get isExecutionWithNoResult(): boolean;
isAggregation(): this is _IAggregation;
readonly columns: ReadonlyArray<IValue>;
private readonly colsByName;
entropy(t: _Transaction): number;
hasItem(raw: Row, t: _Transaction): boolean;
constructor(cols: UCol[], left: _ISelection, right: _ISelection);
stats(t: _Transaction): Stats | null;
enumerate(t: _Transaction): Iterable<Row>;
explain(e: _Explainer): _SelectExplanation;
getColumn(column: string | ExprRef): IValue;
getColumn(column: string | ExprRef, nullIfNotFound?: boolean): IValue | nil;
getIndex(...forValue: IValue[]): _IIndex | null | undefined;
isOriginOf(a: IValue): boolean;
}
export {};
//# sourceMappingURL=union.d.ts.map