diff options
| author | leshe4ka46 <alex9102naid1@ya.ru> | 2025-10-27 20:36:28 +0300 |
|---|---|---|
| committer | leshe4ka46 <alex9102naid1@ya.ru> | 2025-10-28 13:42:21 +0300 |
| commit | bb833561aa74f02970aee13cdc75973b29716491 (patch) | |
| tree | 0914668e11dbf825979f7419ce1bc78294cd3f7f /cmd/yaml | |
| parent | e17a425dfb3382310fb5863f516dacdca9f44956 (diff) | |
# 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
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") +} |
