Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Configuration ¶
type Configuration struct { Default string `json:"default" yaml:"default"` Connections map[string]struct { Host string `json:"host" yaml:"host"` Database string `json:"database" yaml:"database"` Username string `json:"username" yaml:"username"` Password string `json:"password" yaml:"password"` Charset string `json:"charset" yaml:"charset"` } `json:"connections" yaml:"connections"` Pool struct { MaxIdle int `json:"max_idle" yaml:"max_idle"` MaxConnection int `json:"max_connection" yaml:"max_connection"` MaxLifetime int `json:"max_lifetime" yaml:"max_lifetime"` } Debug bool `json:"debug" yaml:"debug"` Migration struct { Path string `json:"path" yaml:"path"` } `json:"migration" yaml:"migration"` }
type DB ¶
type DB struct {
// contains filtered or unexported fields
}
func New ¶
func New(config *Configuration) *DB
type MigrateCommand ¶
type MigrateCommand struct {
// contains filtered or unexported fields
}
func NewMigration ¶
func NewMigration(config *Configuration) *MigrateCommand
func (*MigrateCommand) CobraCmd ¶
func (m *MigrateCommand) CobraCmd() *cobra.Command
func (*MigrateCommand) Run ¶
func (m *MigrateCommand) Run(root contract.BaseCommand, cmd *cobra.Command, args []string)
Click to show internal directories.
Click to hide internal directories.