mirror of
https://github.com/grafana/grafana.git
synced 2025-07-29 17:12:29 +08:00
Chore: Replace xorm with sqlx (#52575)
* Change of sqlstore to use sqlx * Use sqlx in the playlist store * Refectory of the interface * update playlist service * go mod tidy * some refectory on interface * fix kyle
This commit is contained in:
@ -28,10 +28,7 @@ func MySQLTestDB() TestDB {
|
||||
if port == "" {
|
||||
port = "3306"
|
||||
}
|
||||
conn_str := fmt.Sprintf("grafana:password@tcp(%s:%s)/grafana_tests?collation=utf8mb4_unicode_ci", host, port)
|
||||
if _, present := os.LookupEnv("MYSQL_ANSI_QUOTES"); present {
|
||||
conn_str += "&sql_mode='ANSI_QUOTES'"
|
||||
}
|
||||
conn_str := fmt.Sprintf("grafana:password@tcp(%s:%s)/grafana_tests?collation=utf8mb4_unicode_ci&sql_mode='ANSI_QUOTES'", host, port)
|
||||
return TestDB{
|
||||
DriverName: "mysql",
|
||||
ConnStr: conn_str,
|
||||
|
Reference in New Issue
Block a user