Note
This repostiroy has been archived. Use ariga.io/atlas/atlasexec instead.
An SDK for building ariga/atlas providers in Go.
go get -u github.com/luantranminh/atlas-go-sdkTo use the SDK, you need to create a new client with your migrations folder and the atlas binary path.
package main
import (
...
"github.com/luantranminh/atlas-go-sdk/atlasexec"
)
func main() {
// Create a new client
client, err := atlasexec.NewClient("my-migration-folder", "my-atlas-cli-path")
if err != nil {
log.Fatalf("failed to create client: %v", err)
}
}For more information, refer to the documentation available at GoDoc