tx

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

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

func New

func New(store *store.Store) *Manager

func (*Manager) Begin

Begin starts a transaction if none exists yet. If the parent context already contains a transaction, it is reused.

func (*Manager) Commit

func (m *Manager) Commit(ctx context.Context) error

func (*Manager) Rollback

func (m *Manager) Rollback(ctx context.Context) error

func (*Manager) WithTransaction

func (m *Manager) WithTransaction(ctx context.Context, fn func(context.Context) error) error

Jump to

Keyboard shortcuts

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