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

x/pg_mem/execution/statement-exec.ts>StatementExec

An in memory postgres DB instance for your unit tests
Go to Latest
class StatementExec
implements _IStatement
import { StatementExec } from "https://deno.land/x/pg_mem@2.6.13/execution/statement-exec.ts";

Constructors

new
StatementExec(
schema: _ISchema,
statement: Statement,
pAsSql: string | nil,
parameters?: Parameter[],
)

Properties

private
optional
checkAstCoverage: (() => void)
private
readonly
db
private
optional
executor: _IStatementExecutor
private
onExecutedCallbacks: OnStatementExecuted[]

Methods

private
_getExecutor(p: Statement): _IStatementExecutor
private
niceErrors<T>(act: () => T): T
compile(): _IStatementExecutor
executeStatement(t: _Transaction): StatementResult
onExecuted(callback: OnStatementExecuted): void