MCPcopy
hub / github.com/go-gorm/gorm / AutoMigrate

Method AutoMigrate

migrator.go:23–25  ·  migrator.go::DB.AutoMigrate

AutoMigrate run auto migration for given models

(dst ...interface{})

Source from the content-addressed store, hash-verified

21
22// AutoMigrate run auto migration for given models
23func (db *DB) AutoMigrate(dst ...interface{}) error {
24 return db.Migrator().AutoMigrate(dst...)
25}
26
27// ViewOption view option
28type ViewOption struct {

Callers

nothing calls this directly

Calls 2

MigratorMethod · 0.95
AutoMigrateMethod · 0.65

Tested by

no test coverage detected