database

package
v0.3.12 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package database implements the functions, types, and interfaces for the module.

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