class BIndex
implements _INamedIndex
import { BIndex } from "https://dotland.deno.dev/x/pg_mem@3.0.2/schema/btree-index.ts";
Constructors
new
BIndex(t: _Transaction,
name: string,
cols: readonly CreateIndexColDef[],
onTable: _ITable,
hash: string,
unique: boolean,
notNull: boolean,
Properties
Methods
private
_enumerate(op: IndexOp): Iterable<Row>private
bin(t: _Transaction)private
getCount(t: _Transaction): numberprivate
setBin(t: _Transaction, val: RawTree)private
setCount(t: _Transaction, val: number)add(raw: Row, t: _Transaction)
buildKey(raw: any, t: _Transaction): any[]
compare(_a: any, _b: any)
delete(raw: any, t: _Transaction)
drop(t: _Transaction): void
eqFirst(rawKey: IndexKey, t: _Transaction): Row | null
ge(key: IndexKey, t: _Transaction): Iterable<Row>
gt(key: IndexKey, t: _Transaction): Iterable<Row>
hasKey(key: IndexKey[], t: _Transaction): boolean
iterateKeys(t: _Transaction): Iterable<IndexKey>
le(key: IndexKey, t: _Transaction): Iterable<Row>
lt(key: IndexKey, t: _Transaction): Iterable<Row>
nin(rawKey: IndexKey[], t: _Transaction): Iterable<Row>
stats(t: _Transaction, key?: IndexKey): Stats
truncate(t: _Transaction)