1.16.0 • Published 6 years ago
pg-snapshot v1.16.0
PG Snapshot
Small tool to create a snapshot of an actual node-pg query in JSON format. It helps to write fixtures data for unit testing
Usage
pg-snapshot reads connection data from env
- PGUSER
- PGHOST
- PGDATABASE
- PGPASSWORD
and sql command from stdin. Enter twice to send the query.
Example
PGHOST=my_pg_server_hostname PGPASSWORD=my_password PGDATABASE=my_db_name PGUSER=dba node index.js
SELECT * FROM MY_TABLE
WHERE awesomeness >= 9000
<enter>
<enter>
QUERYING
WRITING TO DISK
DONE
closing PG connection pool on exit
after the command completes, you will have a json file at the working dir. And that's it
1.16.0
6 years ago
1.16.0-0
6 years ago
1.15.0-1
6 years ago
1.15.0-0
6 years ago
1.1.1-rc1.2
7 years ago
1.1.1-rc1.1
7 years ago
1.1.1-rc1.0
7 years ago
1.1.1-0
7 years ago
1.0.15
7 years ago
1.0.14
7 years ago
1.0.13
7 years ago