database

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrTxInProgress = errors.New("sql: transaction is already in progress")
)

Functions

This section is empty.

Types

type Database

type Database interface {
	DB() *gorm.DB
	BeginTx() error
	CommitTx() error
	RollbackTx() error
}

func New

func New(db *gorm.DB) Database

Jump to

Keyboard shortcuts

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