From 5f7d92a7817b546a866c9169c1b540338ef6d4a3 Mon Sep 17 00:00:00 2001 From: eson Date: Mon, 30 Nov 2020 16:10:53 +0800 Subject: [PATCH] add mysql-driver --- .gitignore | 1 + go.mod | 1 + go.sum | 1 + main.go | 2 ++ 4 files changed, 5 insertions(+) diff --git a/.gitignore b/.gitignore index e6badf8..a61551f 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ vendor databoard-transform +*.tar.* diff --git a/go.mod b/go.mod index 16fab67..1eabe0f 100644 --- a/go.mod +++ b/go.mod @@ -4,6 +4,7 @@ go 1.15 require ( git.nonolive.co/eson.hsm/databoard-collect v0.3.0 + github.com/go-sql-driver/mysql v1.5.0 github.com/go-xorm/xorm v0.7.9 github.com/google/uuid v1.1.2 go.mongodb.org/mongo-driver v1.4.3 diff --git a/go.sum b/go.sum index dbe2605..e222441 100644 --- a/go.sum +++ b/go.sum @@ -47,6 +47,7 @@ github.com/go-playground/universal-translator v0.17.0/go.mod h1:UkSxE5sNxxRwHyU+ github.com/go-playground/validator/v10 v10.2.0 h1:KgJ0snyC2R9VXYN2rneOtQcw5aHQB1Vv0sFl1UcHBOY= github.com/go-playground/validator/v10 v10.2.0/go.mod h1:uOYAAleCW8F/7oMFd6aG0GOhaH6EGOAJShg8Id5JGkI= github.com/go-sql-driver/mysql v1.4.1/go.mod h1:zAC/RDZ24gD3HViQzih4MyKcchzm+sOG5ZlKdlhCg5w= +github.com/go-sql-driver/mysql v1.5.0 h1:ozyZYNQW3x3HtqT1jira07DN2PArx2v7/mN66gGcHOs= github.com/go-sql-driver/mysql v1.5.0/go.mod h1:DCzpHaOWr8IXmIStZouvnhqoel9Qv2LBy8hT2VhHyBg= github.com/go-stack/stack v1.8.0 h1:5SgMzNM5HxrEjV0ww2lTmX6E2Izsfxas4+YHWRs3Lsk= github.com/go-stack/stack v1.8.0/go.mod h1:v0f6uXyyMGvRgIKkXu+yp6POWl0qKG85gN/melR3HDY= diff --git a/main.go b/main.go index 68630a7..631ed05 100644 --- a/main.go +++ b/main.go @@ -5,6 +5,8 @@ import ( "encoding/json" "time" + _ "github.com/go-sql-driver/mysql" + "git.nonolive.co/eson.hsm/databoard-collect/database" "github.com/go-xorm/xorm" "github.com/google/uuid"