Documentation ¶
Index ¶
- Constants
- func ExcludeFile(name string)
- func MigrateSchema(db *gorm.DB, log Logger, c MigrateConfig) error
- func PadVer(ver1 []string, s int) []string
- func PadVers(ver1 []string, ver2 []string) ([]string, []string)
- func SplitVer(ver string) []string
- func VerAfter(ver1 string, ver2 string) bool
- type Logger
- type MigrateConfig
- type PrintLogger
- type ReadFS
Constants ¶
View Source
const (
VerSep = "."
)
Variables ¶
This section is empty.
Functions ¶
func ExcludeFile ¶ added in v0.0.4
func ExcludeFile(name string)
func MigrateSchema ¶
func MigrateSchema(db *gorm.DB, log Logger, c MigrateConfig) error
Types ¶
type MigrateConfig ¶ added in v0.0.2
type PrintLogger ¶
type PrintLogger struct { }
func (PrintLogger) Error ¶
func (pl PrintLogger) Error(args ...any)
func (PrintLogger) Errorf ¶
func (pl PrintLogger) Errorf(pat string, args ...any)
func (PrintLogger) Info ¶
func (pl PrintLogger) Info(args ...any)
func (PrintLogger) Infof ¶
func (pl PrintLogger) Infof(pat string, args ...any)
Click to show internal directories.
Click to hide internal directories.