New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
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
  • npm
  • Socket score

Version published
Weekly downloads
2
decreased by-66.67%
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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc