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

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

An in memory postgres DB instance for your unit tests
Latest
class TableIndex
implements _IIndex
import { TableIndex } from "https://deno.land/x/pg_mem@3.0.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[]
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