diff --git a/Readme.md b/Readme.md index 36e914d..31983c8 100644 --- a/Readme.md +++ b/Readme.md @@ -48,6 +48,7 @@ import ( _ "github.com/go-sql-driver/mysql" "github.com/iamsalnikov/mymigrate" + "github.com/iamsalnikov/mymigrate/provider/mysql" ) func main() { @@ -56,7 +57,8 @@ func main() { log.Fatalln(err) } - mymigrate.SetDatabase(db) + provider := mysql.NewMysqlProvider(db) + mymigrate.SetDatabaseProvider(provider) ``` ### Add migrations @@ -161,4 +163,4 @@ Package `github.com/iamsalnikov/mymigrate/cobracmd` export next commands: - [NewListCmd](cobracmd/new_cmd.go) - command to view a list of new migrations - [MigrateCmd](cobracmd/cmd.go) - root command to work with migrations -Also you can find at `github.com/iamsalnikov/mymigrate/cobracmd` functions for cobra commands if you want to configure commands by yourself. \ No newline at end of file +Also you can find at `github.com/iamsalnikov/mymigrate/cobracmd` functions for cobra commands if you want to configure commands by yourself.