mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Chore: replace xorm by sqlx in dashboardversion service (#53869)
This commit is contained in:
@@ -48,6 +48,8 @@ func (gs *SessionDB) Beginx() (*SessionTx, error) {
|
||||
}
|
||||
|
||||
func (gs *SessionDB) WithTransaction(ctx context.Context, callback func(*SessionTx) error) error {
|
||||
// Instead of begin a transaction, we need to check the transaction in context, if it exists,
|
||||
// we can reuse it.
|
||||
tx, err := gs.Beginx()
|
||||
if err != nil {
|
||||
return err
|
||||
|
||||
Reference in New Issue
Block a user