Documentation ¶
Index ¶
- Variables
- func Add(name string) (bool, error)
- func Connect() *sql.DB
- func Down() (bool, error)
- func Initialise() (bool, error)
- func Remove(name string) (bool, error)
- func SetConfig()
- func SetMigrationPath()
- func SetSQLPath()
- func SetWorkingPath()
- func Up() (bool, error)
- type DriftConfig
- type DriftMigration
- type DriftProvider
Constants ¶
This section is empty.
Variables ¶
View Source
var ConnectionString string
View Source
var Database *sql.DB
Functions ¶
func Initialise ¶
func SetMigrationPath ¶
func SetMigrationPath()
func SetSQLPath ¶
func SetSQLPath()
func SetWorkingPath ¶
func SetWorkingPath()
Types ¶
type DriftConfig ¶
type DriftConfig struct { Provider DriftProvider `json:"provider"` DatabaseName string `json:"databaseName"` Host string `json:"host"` Username string `json:"username"` Password string `json:"password"` Port int `json:"port"` }
var Config DriftConfig
type DriftProvider ¶
type DriftProvider string
const ( POSTGRES DriftProvider = "POSTGRES" SQLSERVER DriftProvider = "SQL_SERVER" MYSQL DriftProvider = "MY_SQL" )
Source Files ¶
Click to show internal directories.
Click to hide internal directories.