transactional

package
v0.0.0-...-6b11828 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2024 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Transactional

type Transactional struct {
	// contains filtered or unexported fields
}

func New

func New(db *gorm.DB) *Transactional

func (*Transactional) AddCommitHooks

func (cls *Transactional) AddCommitHooks(hooks ...func(ctx context.Context))

func (*Transactional) AddRollbackHooks

func (cls *Transactional) AddRollbackHooks(hooks ...func(ctx context.Context))

func (*Transactional) Commit

func (cls *Transactional) Commit(ctx context.Context) error

func (*Transactional) Rollback

func (cls *Transactional) Rollback(ctx context.Context) error

func (*Transactional) Session

func (cls *Transactional) Session() *gorm.DB

Jump to

Keyboard shortcuts

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