mirror of
https://github.com/grafana/grafana.git
synced 2024-11-27 19:30:36 -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
|
|
}
|