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