1.0.3 • Published 5 years ago

postgrestest v1.0.3

Weekly downloads
1
License
GPL-3.0-or-later
Repository
-
Last release
5 years ago

PGTest

Creates test schemas on a given postgres database and cleans them up afterwards

Installation

npm i --save-dev postgrestest

Usage

const pgtest = require('postgrestest');

const testschema = await pgtest(host, port, user, password, database);

// connect to testschema.schema and do tests
// you can use testschema.pg to access a pg Client object for accessing the database

// delete testschema
await testschema.clean();