aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/datamaps/db.go
diff options
context:
space:
mode:
authorMatthew Lemon <matt@matthewlemon.com>2020-07-26 20:39:18 +0100
committerMatthew Lemon <matt@matthewlemon.com>2020-07-26 20:39:18 +0100
commitb059e3ffb9a37fc0a941458d2cd143fad67a105f (patch)
tree30e851f20ae50e56694071a7ae34b6e70cf47cb1 /pkg/datamaps/db.go
parent44a88a96c5f27a342275b3c43b277c7881f69b22 (diff)
lots of tidy
Diffstat (limited to 'pkg/datamaps/db.go')
-rw-r--r--pkg/datamaps/db.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/datamaps/db.go b/pkg/datamaps/db.go
index 9ae2204..ad612c4 100644
--- a/pkg/datamaps/db.go
+++ b/pkg/datamaps/db.go
@@ -12,8 +12,8 @@ import (
_ "github.com/mattn/go-sqlite3"
)
-// SetupDB creates the intitial database
-func SetupDB(path string) (*sql.DB, error) {
+// setupDB creates the intitial database
+func setupDB(path string) (*sql.DB, error) {
stmtBase := `DROP TABLE IF EXISTS datamap;
CREATE TABLE datamap(id INTEGER PRIMARY KEY, name TEXT, date_created TEXT);
DROP TABLE IF EXISTS datamap_line;