transaction

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Wrapper

type Wrapper[T any, I comparable] struct {
	domain.SQLExecutor
	domain.CRUD[T, I]
	domain.PageResolver[T]
	// contains filtered or unexported fields
}

func NewTx

func NewTx[T any, I comparable](ctx context.Context,
	db *sqlx.DB, tableInfo table.Info, driver string, debugFunc domain.DebugFunc, opts *sql.TxOptions,
) (*Wrapper[T, I], error)

func (*Wrapper[T, I]) Commit

func (t *Wrapper[T, I]) Commit() error

func (*Wrapper[T, I]) Rollback

func (t *Wrapper[T, I]) Rollback() error

Jump to

Keyboard shortcuts

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