aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/datamaps/db.go
diff options
context:
space:
mode:
authorMatthew Lemon <lemon@matthewlemon.com>2020-07-23 16:45:34 +0100
committerMatthew Lemon <lemon@matthewlemon.com>2020-07-23 16:45:34 +0100
commit1cd5f295939e25e6af54bf69ae9f551f23c57f23 (patch)
tree9a1c255eafef10b893b06781e8f99ed3d649bbf9 /pkg/datamaps/db.go
parenta3f1445eb58fb383f9012564108f948f2051869f (diff)
progress on parsing variables - can do again datamap import and setup
Diffstat (limited to '')
-rw-r--r--pkg/datamaps/db.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/datamaps/db.go b/pkg/datamaps/db.go
index 46d07bc..0f6a930 100644
--- a/pkg/datamaps/db.go
+++ b/pkg/datamaps/db.go
@@ -53,7 +53,7 @@ func SetupDB(path string) (*sql.DB, error) {
// TODO - how do we avoid passing in all these params!??!
//DatamapToDB takes a slice of DatamapLine and writes it to a sqlite3 db file.
//func DatafmapToDB(d_path string, data []DatamapLine, dm_name string, dm_path string) error {
-func DatamapToDB(opts Options) error {
+func DatamapToDB(opts *Options) error {
fmt.Printf("Importing datamap file %s and naming it %s.\n", opts.DMPath, opts.DMName)
// db, err := SetupDB("/home/lemon/.config/datamaps-go/datamaps.db")
// if err != nil {