bfpd

package
v0.0.0-...-8a157eb Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 16, 2020 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Overview

Package bfpd implements an Ingest for Branded Food Products. IMPORTANT: BFPD consists of 2 files: food.csv and branded_food.csv. These files need to be sorted prior to running the ingest.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bfpd

type Bfpd struct {
	Doctype string
}

Bfpd for implementing the interface

func (Bfpd) ProcessFiles

func (p Bfpd) ProcessFiles(path string, dc ds.DataSource, bucket string) error

ProcessFiles loads a set of Branded Food Products csv. The 2 data files (food.csv and branded_food.csv) are merged. Existing foods are ignored and previous versions of a food are removed. The end product is a database containing only current versions of foods

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL