Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

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

An in memory postgres DB instance for your unit tests
Latest
class MutationDataSourceBase
Abstract
import { MutationDataSourceBase } from "https://deno.land/x/pg_mem@3.0.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): Row[]

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
getIndex(forValue: IValue): _IIndex | null | undefined
hasItem(value: any, t: _Transaction): boolean
isOriginOf(a: IValue): boolean

Static Properties

readonly
affectedRows: symbol