dal

package
v0.30.12 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2023 License: AGPL-3.0, AGPL-3.0-only Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func NewDB

func NewDB(conn *sql.DB, c config.AppConfig) (*gorm.DB, error)

func Tx

func Tx(tx Transaction, fc func(tx *query.Query) error) error

Types

type MysqlTransaction

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

func (MysqlTransaction) Transaction

func (t MysqlTransaction) Transaction(fc func(tx *query.Query) error) error

type NoopTransaction

type NoopTransaction struct {
}

func (NoopTransaction) Transaction

func (t NoopTransaction) Transaction(fc func(tx *query.Query) error) error

type Transaction

type Transaction interface {
	Transaction(fc func(tx *query.Query) error) error
}

func NewMysqlTransaction

func NewMysqlTransaction(q *query.Query) Transaction

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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