mirror of https://github.com/grafana/grafana
Add DB interface (#46832)
parent
b56848f006
commit
5db1a2e804
@ -0,0 +1,12 @@ |
||||
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 |
||||
} |
||||
Loading…
Reference in new issue