migration

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2024 License: MIT 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: true,
}

DefaultMigrationOptions contains default options for the gormigrate 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