From d2d94cfb6e7c676ad9f709641b86417c17093657 Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Wed, 22 Jul 2020 15:15:45 +0100 Subject: got rid of db package and put everything in reader --- cmd/dm/main.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'cmd') diff --git a/cmd/dm/main.go b/cmd/dm/main.go index 0dc9d7c..9a93fa4 100644 --- a/cmd/dm/main.go +++ b/cmd/dm/main.go @@ -11,7 +11,6 @@ import ( "os" "path/filepath" - "github.com/yulqen/datamaps-go/pkg/db" "github.com/yulqen/datamaps-go/pkg/reader" ) @@ -44,7 +43,7 @@ func setUp() (string, error) { return "", err } log.Printf("Creating database file at %s\n", db_path) - _, err := db.SetupDB(db_path) + _, err := reader.SetupDB(db_path) if err != nil { return "", err } @@ -116,7 +115,7 @@ func main() { } db_path := filepath.Join(config_path, db_name) - err = db.DatamapToDB(db_path, data, *nameFlg, *importFlg) + err = reader.DatamapToDB(db_path, data, *nameFlg, *importFlg) if err != nil { log.Fatal(err) } -- cgit v1.2.3