fastdev-psql

1.3.3 • Public • Published

Quickly start Postgres DB Build Status Coverage Status

Use-case

You need to quickly spin postgres and you don't afraid to use docker.

Usage

import PSQL from 'fastdev-psql';
 
let psql = new PSQL({
  name: 'test-psql', // Name of the container
  port: 9999, // Host port
  user: 'test-user', // Database user
  password: 'test-pass', // Database password
  db: 'test-db', // Database name
  dump: `${__dirname}/dump.sql` // dump (optional)
});
 
psql.pump(); // Pump **all** info into stdout
 
psql.log(); // Show "pretty" output
 
psql.up().then(() => console.log('done and done'));

Package Sidebar

Install

npm i fastdev-psql

Weekly Downloads

2

Version

1.3.3

License

MIT

Unpacked Size

29.4 kB

Total Files

16

Last publish

Collaborators

  • markelog