Skip to content
SQL import of USDA nutrient database
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
LICENSE
Makefile
README.md
data_cleanup.go
import.sql
schema.sql

README.md

nutes

PostgresQL import of USDA nutrient database.

Requires:

  • curl
  • make
  • postgresql
  • go

The Makefile will:

  1. Download the USDA nutrient database
  2. Prepare the text files for import (convert to UTF-8, use TSV)
  3. Create a database schema according to the USDA's documentation.
  4. 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)

You can’t perform that action at this time.