Storage: Remove entity store (#91233)

This commit is contained in:
Ryan McKinley
2024-07-31 09:25:39 +03:00
committed by GitHub
parent 10170cb839
commit 160fe2a3a4
92 changed files with 65 additions and 13340 deletions
@@ -7,10 +7,9 @@ import (
"time"
"github.com/go-sql-driver/mysql"
"github.com/grafana/grafana/pkg/storage/unified/sql/db"
"go.opentelemetry.io/otel/trace"
"xorm.io/xorm"
"github.com/grafana/grafana/pkg/services/store/entity/db"
)
func getEngineMySQL(getter *sectionGetter, _ trace.Tracer) (*xorm.Engine, error) {
+7
View File
@@ -5,6 +5,13 @@ import (
"database/sql"
)
const (
DriverPostgres = "postgres"
DriverMySQL = "mysql"
DriverSQLite = "sqlite"
DriverSQLite3 = "sqlite3"
)
// DBProvider provides access to a SQL Database.
type DBProvider interface {
// Init initializes the SQL Database, running migrations if needed. It is