package tx
import "github.com/ydb-platform/ydb-go-sdk/v3/internal/tx"
Index ¶
Variables ¶
var Lazy = ID("")
Types ¶
type ID ¶
type ID string
func NewID ¶
func (ID) ID ¶
type Identifier ¶
type Identifier interface { ID() string // contains filtered or unexported methods }
type OnTransactionCompletedFunc ¶
type OnTransactionCompletedFunc func(transactionResult error)
type Transaction ¶
type Transaction interface { Identifier UnLazy(ctx context.Context) error SessionID() string OnCompleted(f OnTransactionCompletedFunc) Rollback(ctx context.Context) error }
func AsTransaction ¶
func AsTransaction(id Identifier) (Transaction, error)
Source Files ¶
- Version
- v3.79.2
- Published
- Sep 6, 2024
- Platform
- js/wasm
- Imports
- 3 packages
- Last checked
- 2 minutes ago –
Tools for package owners.