From bb833561aa74f02970aee13cdc75973b29716491 Mon Sep 17 00:00:00 2001 From: leshe4ka46 Date: Mon, 27 Oct 2025 20:36:28 +0300 Subject: # This is a combination of 2 commits. # This is the 1st commit message: unmarshal all formats, merge them in the single table, users are truly unique # This is the commit message #2: i --- cmd/yaml/main.go | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 cmd/yaml/main.go (limited to 'cmd/yaml') 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") +} -- cgit v1.2.3