add mysql-driver

This commit is contained in:
eson 2020-11-30 16:10:53 +08:00
parent 024b4f8693
commit 5f7d92a781
4 changed files with 5 additions and 0 deletions

1
.gitignore vendored
View File

@ -1,2 +1,3 @@
vendor
databoard-transform
*.tar.*

1
go.mod
View File

@ -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

1
go.sum
View File

@ -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=

View File

@ -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"