mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Fix: add mapping for the new mysqlRepl driver (#89551)
This commit is contained in:
parent
4be92ed111
commit
ab5a079bcc
@ -6,9 +6,10 @@ import (
|
|||||||
"strconv"
|
"strconv"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/grafana/grafana/pkg/services/sqlstore/session"
|
|
||||||
"golang.org/x/exp/slices"
|
"golang.org/x/exp/slices"
|
||||||
"xorm.io/xorm"
|
"xorm.io/xorm"
|
||||||
|
|
||||||
|
"github.com/grafana/grafana/pkg/services/sqlstore/session"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
@ -106,12 +107,13 @@ type LockCfg struct {
|
|||||||
type dialectFunc func() Dialect
|
type dialectFunc func() Dialect
|
||||||
|
|
||||||
var supportedDialects = map[string]dialectFunc{
|
var supportedDialects = map[string]dialectFunc{
|
||||||
MySQL: NewMysqlDialect,
|
MySQL: NewMysqlDialect,
|
||||||
SQLite: NewSQLite3Dialect,
|
SQLite: NewSQLite3Dialect,
|
||||||
Postgres: NewPostgresDialect,
|
Postgres: NewPostgresDialect,
|
||||||
MySQL + "WithHooks": NewMysqlDialect,
|
MySQL + "WithHooks": NewMysqlDialect,
|
||||||
SQLite + "WithHooks": NewSQLite3Dialect,
|
MySQL + "ReplicaWithHooks": NewMysqlDialect,
|
||||||
Postgres + "WithHooks": NewPostgresDialect,
|
SQLite + "WithHooks": NewSQLite3Dialect,
|
||||||
|
Postgres + "WithHooks": NewPostgresDialect,
|
||||||
}
|
}
|
||||||
|
|
||||||
func NewDialect(driverName string) Dialect {
|
func NewDialect(driverName string) Dialect {
|
||||||
|
Loading…
Reference in New Issue
Block a user