UNPKG

pg-mem

Version:

A memory version of postgres

32 lines 1.46 kB
import { _IIndex, IValue, _ITable, _Transaction, _Explainer, _IndexExplanation, IndexOp, IndexKey, Stats } from '../interfaces-private'; export declare class TableIndex implements _IIndex { readonly onTable: _ITable & { itemsByTable(table: string, t: _Transaction): Iterable<any>; ownSymbol: any; }; private col; readonly expressions: IValue[]; get hash(): string; explain(e: _Explainer): _IndexExplanation; stats(t: _Transaction, key?: IndexKey): Stats | null; iterateKeys(): null; constructor(onTable: _ITable & { itemsByTable(table: string, t: _Transaction): Iterable<any>; ownSymbol: any; }, col: IValue); get indexName(): string; entropy(op: IndexOp): number; add(raw: any): void; eqFirst([key]: any, t: _Transaction): any; eq([rawKey]: any, t: _Transaction): Iterable<any>; nin(keys: any[][], t: _Transaction): Generator<any, void, unknown>; neq([rawKey]: any, t: _Transaction): Generator<any, void, unknown>; gt(rawKey: any, t: _Transaction): Iterable<any>; lt(rawKey: any, t: _Transaction): Iterable<any>; ge(rawKey: any, t: _Transaction): Iterable<any>; le(rawKey: any, t: _Transaction): Iterable<any>; enumerate(op: IndexOp): Iterable<any>; outside(lo: IndexKey, hi: IndexKey, t: _Transaction): Iterable<any>; inside(lo: IndexKey, hi: IndexKey, t: _Transaction): Iterable<any>; } //# sourceMappingURL=table-index.d.ts.map