Documentation ¶
Index ¶
- func ApplyMigrate(db *sql.DB, v int, s string)
- func CreateMigrationTable(db *sql.DB)
- func DownMigration(db *sql.DB, version int)
- func ExistMigrationTable(db *sql.DB) bool
- func GetConnection() *sql.DB
- func GetVersionMigrate(db *sql.DB) int
- func InitMigrationTable(db *sql.DB)
- func Migrate(db *sql.DB, v int) bool
- func ReadFileMigrate(v int, s string) string
- func SetVersionMigrate(db *sql.DB, version int) bool
- func TestConnection(db *sql.DB) bool
- func UpMigration(db *sql.DB, version int)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateMigrationTable ¶
func DownMigration ¶
func ExistMigrationTable ¶
func GetConnection ¶
func GetVersionMigrate ¶
func InitMigrationTable ¶
func ReadFileMigrate ¶
func TestConnection ¶
func UpMigration ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.