Documentation ¶
Index ¶
- func Migration(sqlDir string, session *dbr.Session) error
- func NewMySQL(addr string, maxOpenConns int, maxIdleConns int, connMaxLifetime time.Duration) *dbr.Session
- func NewRedis(addr string, password string) *redis.Conn
- func NewSqlite(filepath string, sqlDir string) *dbr.Session
- type BaseModel
- type FileDirMigrationSource
- type Time
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type FileDirMigrationSource ¶
type FileDirMigrationSource struct {
Dir string
}
FileDirMigrationSource 文件目录源 遇到目录进行递归获取
func (FileDirMigrationSource) FindMigrations ¶
func (f FileDirMigrationSource) FindMigrations() ([]*migrate.Migration, error)
FindMigrations FindMigrations
Click to show internal directories.
Click to hide internal directories.