transaction

package
v1.5.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 21, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Transaction

type Transaction interface {
	Execute(fun func() error) (e error)
	ExecuteTx(fun func() error, ctx context.Context, opts *sql.TxOptions) (e error)
}

type TransactionImpl added in v1.4.3

type TransactionImpl struct {
	freedom.Infra
	// contains filtered or unexported fields
}

TransactionImpl .

func (*TransactionImpl) BeginRequest added in v1.4.3

func (t *TransactionImpl) BeginRequest(rt freedom.Runtime)

BeginRequest

func (*TransactionImpl) Execute added in v1.4.3

func (t *TransactionImpl) Execute(fun func() error) (e error)

func (*TransactionImpl) ExecuteTx added in v1.4.3

func (t *TransactionImpl) ExecuteTx(fun func() error, ctx context.Context, opts *sql.TxOptions) (e error)

Execute Execute local transaction.

type XA

type XA struct {
	freedom.Infra
}

Transaction .

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL