transaction

package
v0.0.0-...-50d91fd Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2021 License: MIT Imports: 1 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 interface {
	TxnBegin(ctx context.Context) context.Context
	TxnCommit(ctx context.Context) error
	TxnRollback(ctx context.Context) error
	GetTxn(ctx context.Context) interface{}
}

Manager represents operations needed for transaction support. It only needs to be implemented once for each database

Jump to

Keyboard shortcuts

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