mysql

package
v0.55.1 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Drop

func Drop(orm *gorm.DB, dst ...interface{}) error

func Migrate

func Migrate(orm *gorm.DB, dst ...interface{}) error

func NewOrm

func NewOrm(dsn string) (*gorm.DB, error)

Types

type FakeTx added in v0.37.0

type FakeTx struct{}

FakeTx is a test helper that implements Tx interface. It executes SQL statements without wrapping them in transaction.

func (*FakeTx) Transaction added in v0.37.0

func (*FakeTx) Transaction(fc func(tx *gorm.DB) error, opts ...*sql.TxOptions) (err error)

type Tx added in v0.28.0

type Tx interface {
	Transaction(fc func(tx *gorm.DB) error, opts ...*sql.TxOptions) (err error)
}

Jump to

Keyboard shortcuts

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