transaction

package
v1.8.8 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2021 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 GormImpl added in v1.8.0

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

GormImpl .

func (*GormImpl) BeginRequest added in v1.8.0

func (t *GormImpl) BeginRequest(worker freedom.Worker)

BeginRequest .

func (*GormImpl) Execute added in v1.8.0

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

Execute .

func (*GormImpl) ExecuteTx added in v1.8.0

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

ExecuteTx .

type Transaction

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

Transaction .

type XA

type XA struct {
	freedom.Infra
}

XA .

Jump to

Keyboard shortcuts

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