Module

x/pg_mem/transaction.ts>Transaction

An in memory postgres DB instance for your unit tests
Latest
class Transaction
implements _Transaction
import { Transaction } from "https://dotland.deno.dev/x/pg_mem@3.0.3/transaction.ts";

Constructors

new
private
Transaction(parent: Transaction | null, data: ImMap<symbol, any>)

Properties

private
origData: ImMap<symbol, any>
private
transientData: any
readonly
isChild

Methods

delete(identity: symbol): void
get<T>(identity: symbol): T
getMap<T extends ImMap<any, any>>(identity: symbol): T
getSet<T>(identity: symbol): ImSet<T>
getTransient<T>(identity: symbol): T

Set transient data, which will only exist within the scope of the current statement

set<T>(identity: symbol, data: T): T
setTransient<T>(identity: symbol, data: T): T