migration

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2024 License: LGPL-2.1 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultMigrationOptions = &gormigrate.Options{
	TableName:      "migrations",
	IDColumnName:   "id",
	IDColumnSize:   255,
	UseTransaction: false,
}

DefaultMigrationOptions contains default options for the gormigrate package

View Source
var Logger = log.New("migration")

Logger is the logger used for the migration package

Functions

func ExecMultiple

func ExecMultiple(tx *gorm.DB, sqls string) error

ExecMultiple executes multiple SQL sentences

func Run

func Run(db *gorm.DB, migrations []*gormigrate.Migration)

Run executes the migrations given

Types

This section is empty.

Jump to

Keyboard shortcuts

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