postgres-json-export
v1.0.2
Published
Command line utility to Stream query from postgresql database to JSON file.
Downloads
6
Maintainers
Readme
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 tooutput.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