class MemoryTable
extends DataSourceBase
import { MemoryTable } from "https://deno.land/x/pg_mem@3.0.3/table.ts";
Constructors
Properties
private
optional
_reg: Regprivate
changeHandlers: Map<_Column | null, ChangeSub>private
constraintsByName: Map<string, _IConstraint>private
drophandlers: Set<DropHandler>private
handlers: Map<TableEvent, Set<() => void>>private
hasPrimary: BIndex | nullprivate
indexHandlers: Set<IndexHandler>private
truncateHandlers: Set<TruncateHandler>readonly
primaryIndex: IndexDef | nullreadonly
reg: Regreadonly
selection: AliasMethods
private
_subChange(): ISubscriptionprivate
changePlan(): ChangePlanprivate
checkNoConstraint(name: string)private
determineIndexRelName(): string | nilprivate
indexElt(t: _Transaction, toInsert: Row)addColumn(column: SchemaField | CreateColumnDef, t: _Transaction): _Column
addConstraint(cst: TableConstraint, t: _Transaction): _IConstraint | nil
addForeignKey(cst: TableConstraintForeignKey, t: _Transaction): _IConstraint | nil
bin(t: _Transaction)
constraintNameGen(constraintName?: string)
createIndex(t: _Transaction, expressions: CreateIndexDef): _IConstraint | nil
delete(t: _Transaction, toDelete: Row)
drop(t: _Transaction, cascade: boolean)
dropIndex(t: _Transaction, uName: string)
entropy(t: _Transaction)
enumerate(t: _Transaction): Iterable<Row>
getColumnRef(column: string): ColRef
getColumnRef(column: string, nullIfNotFound?: boolean): ColRef | nil
getColumns(): Iterable<ColumnDef>
getConstraint(constraint: string): _IConstraint | nil
hasItem(item: Row, t: _Transaction)
isOriginOf(a: IValue): boolean
listIndices(): IndexDef[]
on(event: TableEvent, handler: () => any): ISubscription
onBeforeChange(columns: "all" | (string | _Column)[], check: ChangeHandler): ISubscription
onCheckChange(columns: string[], check: ChangeHandler): ISubscription
onDrop(sub: DropHandler): ISubscription
onIndex(sub: IndexHandler): ISubscription
raise(event: TableEvent)
register()
remapData(t: _Transaction, modify: (newCopy: Row) => any)
rename(name: string)
setBin(t: _Transaction, val: Raw)
stats(t: _Transaction): Stats | null
truncate(t: _Transaction, _opts?: TruncateOpts): void
update(t: _Transaction, toUpdate: Row): Row