Documentation
¶
Index ¶
- Variables
- func AutoMigrate(params CommandMigrateParams) error
- func Migrate(params GooseMigrateParams) error
- func New(params Params) (*gorm.DB, error)
- func NewSQL(config Config) (*sql.DB, error)
- func RegisterGoose(storage GooseStorage)
- func RegisterMigration(migrator Migrator)
- type CommandMigrateParams
- type Config
- type GooseMigrateParams
- type GooseStorage
- type Migrator
- type Params
Constants ¶
This section is empty.
Variables ¶
View Source
var ConfigDefault = Config{
Dialect: "mysql",
Host: "localhost",
Port: 3306,
User: "root",
Password: "",
Database: "db",
}
Functions ¶
func AutoMigrate ¶ added in v1.4.0
func AutoMigrate(params CommandMigrateParams) error
func Migrate ¶ added in v1.4.0
func Migrate(params GooseMigrateParams) error
func RegisterGoose ¶ added in v1.4.0
func RegisterGoose(storage GooseStorage)
func RegisterMigration ¶ added in v1.4.0
func RegisterMigration(migrator Migrator)
Types ¶
type CommandMigrateParams ¶
type GooseMigrateParams ¶ added in v1.3.0
type GooseStorage ¶ added in v1.3.0
Source Files
¶
Click to show internal directories.
Click to hide internal directories.