1.0.2 • Published 8 years ago
postgres-json-export v1.0.2
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
--outputparam to define output file. If there is no output param, data will be saved tooutput.jsonin the current working folder. - Config file can be defined with
--config-fileargument. It must have connectionString property or you can pass connection string manually with--connectionparam.
License
MIT