diff options
Diffstat (limited to 'cmd/csv/main.go')
| -rw-r--r-- | cmd/csv/main.go | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/cmd/csv/main.go b/cmd/csv/main.go new file mode 100644 index 0000000..e1e5174 --- /dev/null +++ b/cmd/csv/main.go @@ -0,0 +1,18 @@ +package main + +import ( + "airlines/pkg/adapters/csv" + "airlines/pkg/localstore" +) + +func main() { + yamlData, err := csv.UnmarshallCsv("/home/alex/ds-data/tab.csv", true) + if err != nil { + panic(err) + } + + store := localstore.NewLocalStore() + + yamlData.DumpToDb(store) + store.ExportAllCSVs("/tmp/ds") +} |
