🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
Socket

postgres-json-export

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

postgres-json-export

Command line utility to Stream query from postgresql database to JSON file.

1.0.2
latest
Source
npm
Version published
Weekly downloads
7
-30%
Maintainers
1
Weekly downloads
 
Created
Source

postgres-json-export

Stream postgres query to output file in JSON format.

Install

npm install -g postgres-json-export

Example

postgresjson --query="select * from table" --config-file="./config.json"

Notes

  • Use --output param to define output file. If there is no output param, data will be saved to output.json in the current working folder.
  • Config file can be defined with --config-file argument. It must have connectionString property or you can pass connection string manually with --connection param.

License

MIT

Keywords

posgresql

FAQs

Package last updated on 07 Sep 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