Script for importing the USDA Nutrients Database into PostgreSQL.
- Downloads & unzips the USDA Nutrients Database in .txt format
- Creates the PostgreSQL tables
- Imports the data from the unzipped .txt files
- Create a PostgreSQL database, UTF-8 encoded.
- Run
./import_usdand.sh postgresDatabase
An Ansible powered Vagrant box is also included, it reflects the environment this was built and used in.
If you just want the PostgreSQL database without having to run the script, a pg_dump can be found in usda_sr28.sql