database

package
v0.0.92 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExecFunc

type ExecFunc = func(context.Context) error

ExecFunc is a function that can be executed within a transaction

type Trans

type Trans = interface {
	Tx(ctx context.Context, fn ExecFunc) error
	InTx(ctx context.Context, fn TxFunc) error
}

Trans is a transaction wrapper

type Tx

type Tx = driver.Tx

Tx is a transaction aliased to driver.Tx

type TxFunc

type TxFunc = func(tx Tx) error

TxFunc is a function that can be executed within a transaction

Jump to

Keyboard shortcuts

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