PostgresQL import of USDA nutrient database.
Requires:
- curl
- make
- postgresql
- go
The Makefile will:
- Download the USDA nutrient database
- Prepare the text files for import (convert to UTF-8, use TSV)
- Create a database schema according to the USDA's documentation.
- Import the data files into the database.
For this to work you will likely need to edit the Makefile to fit your particular postgresql install. By default psql is assumed to work without username, password, or database. (Tested using Postgres.app on my mac)