migrate

package
v0.0.0-...-c021f34 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 12, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyMigrate

func ApplyMigrate(db *sql.DB, v int, s string)

func CreateMigrationTable

func CreateMigrationTable(db *sql.DB)

func DownMigration

func DownMigration(db *sql.DB, version int)

func ExistMigrationTable

func ExistMigrationTable(db *sql.DB) bool

func GetConnection

func GetConnection() *sql.DB

func GetVersionMigrate

func GetVersionMigrate(db *sql.DB) int

func InitMigrationTable

func InitMigrationTable(db *sql.DB)

func Migrate

func Migrate(db *sql.DB, v int) bool

func ReadFileMigrate

func ReadFileMigrate(v int, s string) string

func SetVersionMigrate

func SetVersionMigrate(db *sql.DB, version int) bool

func TestConnection

func TestConnection(db *sql.DB) bool

func UpMigration

func UpMigration(db *sql.DB, version int)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL