1.3.1 • Published 5 years ago

nor-pgrunner v1.3.1

Weekly downloads
7
License
MIT
Repository
github
Last release
5 years ago

nor-pgrunner

Utility which can be used to start PostgreSQL server instances temporarely. Good for testing.

TODO

We use Trello board to organize development and keep track on things to do.

Installation

Install from NPM: npm install -g pgrunner

Usage over CLI

Use with CLI:

pgrunner create
pgrunner destroy

Usage over Node.js

Use with Node.js:

var pgrunner = require('nor-pgrunner');

Example usage:

pgrunner({
	'host': '127.0.0.1',  // Defaults to '127.0.0.1'
	'port': 55432,        // Defaults to '55432'
	'user': 'foo',        // Defaults to USER from ENV
	'database': 'dbname'  // Defaults to same value as the user option
}).then(function(server) {
	
	// server.pgconfig is a string like 'pg://jhh@127.0.0.1:55432/jhh'
	// server.settings has the same options as properties: host, port, user, database
	// server.env has the environment variables the server is using
	
	// Stop the instance
	return server.stop().then(function() {
		console.log('Stopped successfully');
	});

}).fail(function(err) {
	console.log('Error: ' + err);
}).done();

Commercial Support

You can buy commercial support from Sendanor.

1.3.1

5 years ago

1.3.0

5 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago

0.3.0

8 years ago

0.1.24

8 years ago

0.2.0

8 years ago

0.1.23

9 years ago

0.1.22

9 years ago

0.1.21

9 years ago

0.1.20

9 years ago

0.1.19

9 years ago

0.1.18

9 years ago

0.1.17

9 years ago

0.1.16

9 years ago

0.1.15

9 years ago

0.1.14

9 years ago

0.1.13

10 years ago

0.1.12

10 years ago

0.1.11

10 years ago

0.1.10

10 years ago

0.1.9

10 years ago

0.1.8

10 years ago

0.1.7

10 years ago

0.1.6

10 years ago

0.1.5

10 years ago

0.1.4

10 years ago

0.1.3

10 years ago

0.1.2

10 years ago

0.1.1

10 years ago

0.1.0

10 years ago

0.0.2

10 years ago