Module

x/pg_mem/interfaces-private.ts>LibAdapters

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

Methods

createPg(queryLatency?: number): { Pool: any; Client: any; }

Create a PG module that will be equivalent to require('pg')

createPgPromise(queryLatency?: number): any

Create a pg-promise instance bound to this db

createSlonik(queryLatency?: number): any

Create a slonik pool bound to this db

createPgNative(queryLatency?: number): any

Create a pg-native instance bound to this db

deprecated
createTypeormConnection(typeOrmConnection: any, queryLatency?: number): any

Create a Typeorm connection bound to this db

createTypeormDataSource(typeOrmConnection: any, queryLatency?: number): any

Create a Typeorm data source bound to this db

createKnex(queryLatency?: number, knexConfig?: object): any

Create a Knex.js instance bound to this db

createMikroOrm(mikroOrmOptions: any, queryLatency?: number): Promise<any>

Create a mikro-orm instance bound to this db