mirror of https://github.com/ory/kratos
21 lines
395 B
Go
21 lines
395 B
Go
// Copyright © 2024 Ory Corp
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
package x
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/ory/pop/v6"
|
|
)
|
|
|
|
type (
|
|
TransactionPersistenceProvider interface {
|
|
TransactionalPersisterProvider() TransactionalPersister
|
|
}
|
|
|
|
TransactionalPersister interface {
|
|
Transaction(ctx context.Context, callback func(ctx context.Context, connection *pop.Connection) error) error
|
|
}
|
|
)
|