mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-12 11:07:32 +00:00
add documentation
This commit is contained in:
@@ -2,6 +2,7 @@ package database
|
||||
|
||||
import "context"
|
||||
|
||||
// Transaction is an SQL transaction.
|
||||
type Transaction interface {
|
||||
Commit(ctx context.Context) error
|
||||
Rollback(ctx context.Context) error
|
||||
@@ -12,6 +13,7 @@ type Transaction interface {
|
||||
QueryExecutor
|
||||
}
|
||||
|
||||
// Beginner can start a new transaction.
|
||||
type Beginner interface {
|
||||
Begin(ctx context.Context, opts *TransactionOptions) (Transaction, error)
|
||||
}
|
||||
|
Reference in New Issue
Block a user