mirror of
https://github.com/grafana/grafana.git
synced 2025-07-30 19:42:30 +08:00

* 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
18 lines
523 B
Go
18 lines
523 B
Go
package db
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/grafana/grafana/pkg/services/sqlstore"
|
|
"github.com/grafana/grafana/pkg/services/sqlstore/migrator"
|
|
"github.com/grafana/grafana/pkg/services/sqlstore/session"
|
|
)
|
|
|
|
type DB interface {
|
|
WithTransactionalDbSession(ctx context.Context, callback sqlstore.DBTransactionFunc) error
|
|
WithDbSession(ctx context.Context, callback sqlstore.DBTransactionFunc) error
|
|
NewSession(ctx context.Context) *sqlstore.DBSession
|
|
GetDialect() migrator.Dialect
|
|
GetSqlxSession() *session.SessionDB
|
|
}
|