class ReadOnlyTable
extends DataSourceBase
Abstract
import { ReadOnlyTable } from "https://dotland.deno.dev/x/pg_mem@3.0.3/schema/readonly-table.ts";
Constructors
new
ReadOnlyTable(schema: _ISchema)Methods
private
build()protected
buildColumnEvaluator(_col: SchemaField, idx: number): IValueaddColumn(column: SchemaField | CreateColumnDef): _Column
addConstraint(constraint: TableConstraint, t: _Transaction): _IConstraint
delete(t: _Transaction, toDelete: Row): void
doInsert(toInsert: any): void
drop(t: _Transaction): void
dropIndex(t: _Transaction, name: string): void
abstract
entropy(t: _Transaction): numberabstract
enumerate(t: _Transaction): Iterable<Row>getColumnRef(column: string, nullIfNotFound?: boolean): _Column
getColumns(): Iterable<ColumnDef>
getConstraint(constraint: string): _IConstraint | nil
abstract
hasItem(value: Row, t: _Transaction): booleaninsert(item: any)
isOriginOf(v: IValue): boolean
itemsByTable(table: string | _ITable, t: _Transaction): IterableIterator<any>
listIndices(): IndexDef[]
on(): any
onBeforeChange(columns: string[], check: ChangeHandler)
onCheckChange(columns: string[], check: ChangeHandler)
onDrop(sub: DropHandler): ISubscription
onIndex(sub: IndexHandler): ISubscription
register()
rename(to: string): this
setHidden(): this
setReadonly(): this
stats(t: _Transaction): Stats | null
truncate(t: _Transaction): void
update(t: _Transaction, toUpdate: any): never