Module

x/pg_mem/schema/custom-index.ts>CustomIndex

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

Constructors

new
CustomIndex(onTable: _ITable<T>, subject: IndexSubject<T>)

Properties

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

Methods

add(raw: any): void
entropy(): number
enumerate(op: IndexOp): Iterable<T>
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<T>
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<T>
stats(t: _Transaction, key?: IndexKey): Stats | null