Module

x/pg_mem/schema/table-index.ts>TableIndex

An in memory postgres DB instance for your unit tests
Go to Latest
class TableIndex
implements _IIndex
import { TableIndex } from "https://dotland.deno.dev/x/pg_mem@2.6.3/schema/table-index.ts";

Constructors

new
TableIndex(onTable: _ITable & { ownSymbol: any; itemsByTable(table: string, t: _Transaction): Iterable<any>; }, col: IValue)

Properties

readonly
expressions: IValue<any>[]
readonly
hash: string
readonly
indexName: string

Methods

add(raw: any): void
entropy(op: IndexOp): number
enumerate(op: IndexOp): Iterable<any>
eq(unnamed 0: any, t: _Transaction): Iterable<any>
eqFirst(unnamed 0: any, t: _Transaction)
ge(rawKey: any, t: _Transaction): Iterable<any>
gt(rawKey: any, t: _Transaction): Iterable<any>
inside(): Iterable<any>
le(rawKey: any, t: _Transaction): Iterable<any>
lt(rawKey: any, t: _Transaction): Iterable<any>
neq(unnamed 0: any, t: _Transaction)
nin(keys: any[][], t: _Transaction)
outside(): Iterable<any>
stats(t: _Transaction, key?: IndexKey): Stats | null