1.0.0 • Published 6 years ago
csv-file-faker v1.0.0
csv-file-faker
The CSV file faker will populate the necessary value based on the lookup or map_from
field your provided.
Installation
npm i -g pg-records-to-json
- See pg-records-to-json
npm i -g csv-file-faker
Usage
NOTE: It assumes that your PG config point to the correct database.
PGDATABASE, PGPASSWORD, etc. configs must be set in your bash/shell environment.
QUERY="SELECT column_name, data_type, map_from FROM dna_validation.columns WHERE dataset_name = 'behavior'" \
pg-records-to-json > meta.json
META=meta.json ROWS=5 csv-file-faker > import.csv
Future:
Need to be extensible.
1.0.0
6 years ago