mirror of
https://github.com/grafana/grafana.git
synced 2024-11-30 20:54:22 -06:00
13 lines
281 B
Go
13 lines
281 B
Go
package db
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/grafana/grafana/pkg/services/sqlstore"
|
|
)
|
|
|
|
type DB interface {
|
|
WithTransactionalDbSession(ctx context.Context, callback sqlstore.DBTransactionFunc) error
|
|
WithDbSession(ctx context.Context, callback sqlstore.DBTransactionFunc) error
|
|
}
|