Skip to content

luantranminh/atlas-go-sdk

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Atlas SDK for Go

Note

This repostiroy has been archived. Use ariga.io/atlas/atlasexec instead.

Go Reference

An SDK for building ariga/atlas providers in Go.

Installation

go get -u github.com/luantranminh/atlas-go-sdk

How to use

To 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)
    }
}

APIs

For more information, refer to the documentation available at GoDoc

About

An SDK for building atlasgo.io providers

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 99.2%
  • Shell 0.8%