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
import { CustomIndex } from "https://dotland.deno.dev/x/pg_mem@3.0.2/schema/custom-index.ts";

Constructors

new
CustomIndex(onTable: _ITable, subject: IndexSubject)

Properties

readonly
expressions: IValue[]
readonly
indexName: string

Methods

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