Module

x/pg_mem/interfaces-private.ts>_IDb

An in memory postgres DB instance for your unit tests
Go to Latest
interface _IDb
implements IMemoryDb
import { type _IDb } from "https://dotland.deno.dev/x/pg_mem@2.6.3/interfaces-private.ts";

Properties

readonly
options: MemoryDbOptions
readonly
public: _ISchema
readonly
data: _Transaction
readonly
searchPath: ReadonlyArray<string>

Methods

createSchema(db: string): _ISchema
getSchema(db?: string | null, nullIfNotFound?: false): _ISchema
getSchema(db: string, nullIfNotFound: true): _ISchema | null
raiseTable(table: string, event: TableEvent): void
raiseGlobal(event: GlobalEvent, ...args: any[]): void
listSchemas(): _ISchema[]
onSchemaChange(): void
getTable(name: string, nullIfNotExists?: boolean): _ITable
getExtension(name: string): (schema: ISchema) => void
resolveFunction(name: string | QName, types: IValue[]): _FunctionDefinition | nil

Get functions matching this overload

resolveOperator(
left: IValue,
right: IValue,
): _OperatorDefinition | nil

Get operators matching this overload

getLanguage(name: string): LanguageCompiler