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

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

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