transaction

package
v1.9.5 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2023 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
}

GormImpl .

func (*GormImpl) BeginRequest added in v1.8.0

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

BeginRequest Polymorphic method, subclasses can override overrides overrides. The request is triggered after entry.

func (*GormImpl) Execute added in v1.8.0

func (t *GormImpl) Execute(fun func() error, opts ...*sql.TxOptions) (e error)

Execute An execution function is passed in, and transactions are executed within the function.

type Transaction

type Transaction interface {
	// Incoming functions to be executed, using the same handle within the function.
	Execute(fun func() error, opts ...*sql.TxOptions) (e error)
}

Transaction The interface definition of the transaction component.

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