dal

package
v0.27.4 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2022 License: AGPL-3.0, AGPL-3.0-only Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func NewDB

func NewDB(conn *sql.DB, c config.AppConfig, scope tally.Scope, prom prometheus.Registerer) (*gorm.DB, error)

func Tx added in v0.23.8

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

Types

type MysqlTransaction added in v0.23.8

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

func (MysqlTransaction) Transaction added in v0.23.8

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

type NoopTransaction added in v0.23.8

type NoopTransaction struct {
}

func (NoopTransaction) Transaction added in v0.23.8

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

type Transaction added in v0.23.8

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

func NewMysqlTransaction added in v0.23.8

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