diff --git a/mongo/benchmark_test.go b/mongo/benchmark_test.go index abd98082a2bed968cda6d82dd4ac1933b9c9751c..0434f2b3e142d3430c2ae503aa748eaaec8db477 100644 --- a/mongo/benchmark_test.go +++ b/mongo/benchmark_test.go @@ -2,11 +2,12 @@ package mongo import ( "fmt" - "gopkg.in/mgo.v2" - "gopkg.in/mgo.v2/bson" "math/rand" "testing" + "gopkg.in/mgo.v2" + "gopkg.in/mgo.v2/bson" + "upper.io/db" ) diff --git a/mysql/database.go b/mysql/database.go index 960bc15c20b369810010bc52a7b9811801daaede..5f58051cb1bd15d0702d4152f38cfcd362065122 100644 --- a/mysql/database.go +++ b/mysql/database.go @@ -24,6 +24,7 @@ package mysql import ( "database/sql" "strings" + "text/template" "time" _ "github.com/go-sql-driver/mysql" // MySQL driver. diff --git a/postgresql/database.go b/postgresql/database.go index 0872939404746dd009cf465b014af5b5114960dc..c20266a7042389e2a37f1e072d8ce4940985caca 100644 --- a/postgresql/database.go +++ b/postgresql/database.go @@ -25,6 +25,7 @@ import ( "database/sql" "strconv" "strings" + "text/template" "time" "github.com/jmoiron/sqlx" diff --git a/ql/database.go b/ql/database.go index 949d79386b65c0aa250fd2ae49b90e9b46267140..f76692eec66564920194e350cecfef83331d4d64 100644 --- a/ql/database.go +++ b/ql/database.go @@ -25,6 +25,7 @@ import ( "database/sql" "strconv" "strings" + "text/template" "time" _ "github.com/cznic/ql/driver" // QL driver diff --git a/sqlite/database.go b/sqlite/database.go index c75247d364220f541c16673e62f4ec2306e181e6..5f0a4d7f8e513e73bad4ae765fd078bbbdd0cbec 100644 --- a/sqlite/database.go +++ b/sqlite/database.go @@ -25,6 +25,7 @@ import ( "database/sql" "fmt" "strings" + "text/template" "time" "github.com/jmoiron/sqlx" diff --git a/util/sqlutil/result/table.go b/util/sqlutil/result/table.go index 12076d80629c02daec0635f3e29e40a86cd023de..b45153b4ed03d3fb2a8bcaa1745c43dea01e021b 100644 --- a/util/sqlutil/result/table.go +++ b/util/sqlutil/result/table.go @@ -2,6 +2,7 @@ package result import ( "database/sql" + "github.com/jmoiron/sqlx" "upper.io/db/util/sqlgen" )