UNPKG

pgmock2

Version:

An NPM module for mocking a connection to a PostgreSQL database.

19 lines (18 loc) 622 B
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.getPool = exports.getClient = void 0; var PGMock2_1 = __importDefault(require("./PGMock2")); exports.default = PGMock2_1.default; var getClient = function (pgmock) { pgmock = pgmock || new PGMock2_1.default(); return pgmock; }; exports.getClient = getClient; var getPool = function (pgmock) { pgmock = pgmock || new PGMock2_1.default(); return pgmock; }; exports.getPool = getPool;