Module

x/pg_mem/interfaces-private.ts>_IIndex

An in memory postgres DB instance for your unit tests
Go to Latest
interface _IIndex
import { type _IIndex } from "https://dotland.deno.dev/x/pg_mem@2.6.3/interfaces-private.ts";

Type Parameters

optional
T = any

Properties

readonly
optional
unique: boolean
readonly
expressions: IndexExpression[]

Methods

entropy(t: IndexOp): number

Returns a measure of how many items will be returned by this op

stats(t: _Transaction, key?: IndexKey): Stats | null

Returns this selection stats, or null if it cannot be computed without iteration

eqFirst(rawKey: IndexKey, t: _Transaction): T | null

Get values equating the given key

enumerate(op: IndexOp): Iterable<T>
iterateKeys(t: _Transaction): Iterable<IndexKey> | null