2015-01-20 21:15:48 +08:00
|
|
|
package sqlutil
|
|
|
|
|
|
|
|
type TestDB struct {
|
|
|
|
DriverName string
|
|
|
|
ConnStr string
|
|
|
|
}
|
|
|
|
|
2018-02-13 23:51:11 +08:00
|
|
|
var TestDB_Sqlite3 = TestDB{DriverName: "sqlite3", ConnStr: ":memory:"}
|
2017-09-04 18:32:07 +08:00
|
|
|
var TestDB_Mysql = TestDB{DriverName: "mysql", ConnStr: "grafana:password@tcp(localhost:3306)/grafana_tests?collation=utf8mb4_unicode_ci"}
|
2015-01-20 21:15:48 +08:00
|
|
|
var TestDB_Postgres = TestDB{DriverName: "postgres", ConnStr: "user=grafanatest password=grafanatest host=localhost port=5432 dbname=grafanatest sslmode=disable"}
|
2018-03-15 16:49:53 +08:00
|
|
|
var TestDB_Mssql = TestDB{DriverName: "mssql", ConnStr: "server=localhost;port=1433;database=grafanatest;user id=grafana;password=Password!"}
|