Hi! Hopefully you know what this is for; since I'm putting this on (publicly searchable) GitHub I don't want to mention it specifically!
- An instance of postgres, running somewhere
- node.js (this was developed on v10.12; older versions probably work but YMMV)
npm install
- Configure
./env.json
and./env-test.json
to point at databases running on a postgres instance - Create/replace files in the
data/
andspecs/
directories
npm run import
-- executes the import code, using the credentials specified in./env.json
npm run test
-- runs unit tests and code coveragenpm run lint
-- runs ESLint on code
When the import code is run,
- A new schema will be created,
import_${epoch}
- A table will be created for each valid data file. The table name will be everything before the extension (with hyphens converted to underscores b/c postgres gets angry otherwise)
- Rows will be added to the appropriate tables -- per a strict reading of the project's specification, there are no autoincrement/primary keys
- Some summary text will print to stdout