You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

db-dump

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

db-dump

dumps a postgres schema and a partial set of tables into sql files

1.1.0
latest
Source
npmnpm
Version published
Weekly downloads
1
-83.33%
Maintainers
1
Weekly downloads
 
Created
Source

db-dump

dumps a postgres db and some of its tables to sql files

Usage

db-dump --config=config.js --data-dir=../data-dir --config-dir=/path/to/config/dir

all options are optional. if you ommit one the following defaults are used:

  • config: $pwd/config.js
  • data-dir: $pwd/data/
  • config-dir: $pwd/config/

All paths may be relative and will be resolved rtelative to $pwd

Option --config=

Contains the path to a config file which must export the following object:

module.exports = {
      database: 'myDb'
    , user: 'root'
    , pass: 'secure'
    , host: 'somne.domain'
    , port: 5432
};

Option --data-dir=

Specifies the folder where the dumps will be stored

Option --config-dir=

Specifies where the config files for the dumps are stored. The folde must contain js files that export obejct of the following form:

module.exports = {
      schema: 'authentication_condition_service'
    , dataFrom: [ // list of tables for which the data must be dumped
          'status'
    ]
};

FAQs

Package last updated on 21 Mar 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts