Module

x/pg_mem/execution/records-mutations/mutation-base.ts>MutationDataSourceBase

An in memory postgres DB instance for your unit tests
Go to Latest
class MutationDataSourceBase
extends DataSourceBase<T>
Abstract
import { MutationDataSourceBase } from "https://dotland.deno.dev/x/pg_mem@2.6.3/execution/records-mutations/mutation-base.ts";

Constructors

new
MutationDataSourceBase(
table: _ITable,
mutatedSel: _ISelection,
p: MutationStatement,
)

Properties

private
mutationResult: symbol
private
optional
returning: _ISelection
private
optional
returningRows: ArrayFilter
readonly
columns
readonly
isExecutionWithNoResult: boolean

Methods

private
_doExecuteOnce(t: _Transaction): any[]
protected
abstract
performMutation(t: _Transaction): T[]

Perform the mutation, and returns the affected elements

entropy(t: _Transaction): number
enumerate(t: _Transaction): Iterable<any>
explain(e: _Explainer): never
getColumn(column: string | ExprRef, nullIfNotFound?: boolean | undefined): IValue<any>
getIndex(forValue: IValue<any>): _IIndex<any> | null | undefined
hasItem(value: any, t: _Transaction): boolean
isOriginOf(a: IValue<any>): boolean

Static Properties

readonly
affectedRows: symbol