Skip to content

Commit

Permalink
recordriver: use from sdk (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
rotemtam committed Jul 9, 2023
1 parent 245fee0 commit ffaa9ee
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 221 deletions.
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.

0 comments on commit ffaa9ee

Please sign in to comment.