transaction

package
v0.0.0-...-9c716d7 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2025 License: MIT Imports: 3 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 struct {
	// contains filtered or unexported fields
}

func New

func New(db *bun.DB) *Transaction

func (*Transaction) Do

func (t *Transaction) Do(ctx context.Context, fn func(ctx context.Context) error) error

type TransactionInterface

type TransactionInterface interface {
	Do(ctx context.Context, fn func(ctx context.Context) error) error
}

Directories

Path Synopsis
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.

Jump to

Keyboard shortcuts

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