postgrestest

1.0.3 • Public • Published

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();

Readme

Keywords

Package Sidebar

Install

npm i postgrestest

Weekly Downloads

0

Version

1.0.3

License

GPL-3.0-or-later

Unpacked Size

39.6 kB

Total Files

8

Last publish

Collaborators

  • timoho01