An open API service indexing awesome lists of open source software.

https://github.com/ariga/atlas-go-sdk

An SDK for building atlasgo.io providers
https://github.com/ariga/atlas-go-sdk

Last synced: 2 months ago
JSON representation

An SDK for building atlasgo.io providers

Awesome Lists containing this project

README

        

# Atlas SDK for Go

[![Go Reference](https://pkg.go.dev/badge/ariga.io/atlas-go-sdk/atlasexec.svg)](https://pkg.go.dev/ariga.io/atlas-go-sdk/atlasexec)

An SDK for building ariga/atlas providers in Go.

## Installation

```bash
go get -u ariga.io/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.

```go
package main

import (
...
"ariga.io/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](https://pkg.go.dev/ariga.io/atlas-go-sdk/atlasexec#Client)