aboutsummaryrefslogtreecommitdiffstats
path: root/cmd
diff options
context:
space:
mode:
authorMatthew Lemon <matt@matthewlemon.com>2020-07-22 15:15:45 +0100
committerMatthew Lemon <matt@matthewlemon.com>2020-07-22 15:15:45 +0100
commitd2d94cfb6e7c676ad9f709641b86417c17093657 (patch)
treea1afa69dc1dad37743a21f5903e28c12202caa96 /cmd
parentfaddb47d97e0d2bcc9742a8e57d2475f9d4a3707 (diff)
got rid of db package and put everything in reader
Diffstat (limited to 'cmd')
-rw-r--r--cmd/dm/main.go5
1 files changed, 2 insertions, 3 deletions
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)
}