Help us shape the future of Go! Take the 2026 Go Developer Survey

mysql

package
v0.58.3 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2026 License: MIT Imports: 8 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