Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

recordriver: use from sdk #7

Merged
merged 1 commit into from
Jul 9, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ import (
"os"

"ariga.io/atlas-provider-gorm/gormschema"
_ "ariga.io/atlas-provider-gorm/recordriver"
_ "ariga.io/atlas-go-sdk/recordriver"
"github.com/<yourorg>/<yourrepo>/path/to/models"
)

Expand Down
1 change: 1 addition & 0 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ module ariga.io/atlas-provider-gorm
go 1.20

require (
ariga.io/atlas-go-sdk v0.0.0-20230709063453-1058d6508503
github.com/alecthomas/kong v0.7.1
github.com/stretchr/testify v1.8.4
golang.org/x/tools v0.10.0
Expand Down
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
ariga.io/atlas-go-sdk v0.0.0-20230709063453-1058d6508503 h1:D12EzAAjhL7xEJk5jFnkKYUXVrDQ4mh0IjB8vqTmo8I=
ariga.io/atlas-go-sdk v0.0.0-20230709063453-1058d6508503/go.mod h1:fwi5nIOFLedo6CqZ0a172dhykLWBnoD25bqmZhvW948=
github.com/alecthomas/assert/v2 v2.1.0 h1:tbredtNcQnoSd3QBhQWI7QZ3XHOVkw1Moklp2ojoH/0=
github.com/alecthomas/kong v0.7.1 h1:azoTh0IOfwlAX3qN9sHWTxACE2oV8Bg2gAwBsMwDQY4=
github.com/alecthomas/kong v0.7.1/go.mod h1:n1iCIO2xS46oE8ZfYCNDqdR0b0wZNrXAIAqro/2132U=
Expand Down
2 changes: 1 addition & 1 deletion gormschema/gorm.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"database/sql/driver"
"fmt"

"ariga.io/atlas-provider-gorm/recordriver"
"ariga.io/atlas-go-sdk/recordriver"
"gorm.io/driver/mysql"
"gorm.io/driver/postgres"
"gorm.io/driver/sqlite"
Expand Down
2 changes: 1 addition & 1 deletion loader.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"{{ . }}"
{{- end}}
"ariga.io/atlas-provider-gorm/gormschema"
_ "ariga.io/atlas-provider-gorm/recordriver"
_ "ariga.io/atlas-go-sdk/recordriver"
)

func main() {
Expand Down
179 changes: 0 additions & 179 deletions recordriver/driver.go

This file was deleted.

39 changes: 0 additions & 39 deletions recordriver/driver_test.go

This file was deleted.