Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetLogger ¶
func SetLogger(l *zap.SugaredLogger)
Types ¶
type CLI ¶
type CLI struct { MigrateUp struct { } `cmd:"" help:"Apply database migrations"` MigrateDown struct { Max int `optional:"" help:"Max number of migrations to unapply" default:"0"` } `cmd:"" help:"Unapply database migrations"` }
type DBConfig ¶
type DBConfig struct {
// contains filtered or unexported fields
}
func DefaultDBConfig ¶
func DefaultDBConfig() *DBConfig
func (*DBConfig) GetFullDSN ¶
func (*DBConfig) NoMigration ¶
type Migrator ¶
type Migrator struct {
// contains filtered or unexported fields
}
func (Migrator) MigrateDown ¶
MigrateDown undoes a specified number of migrations.
Click to show internal directories.
Click to hide internal directories.