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

Use purego driver #476

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
14 changes: 12 additions & 2 deletions go.mod
Expand Up @@ -2,15 +2,25 @@ module gorm.io/playground

go 1.16

replace gorm.io/driver/sqlite => github.com/Arsen6331/sqlite v1.3.3-0.20220429065518-98334794f73c

require (
github.com/golang-sql/civil v0.0.0-20220223132316-b832511892a9 // indirect
github.com/jackc/pgx/v4 v4.16.1 // indirect
golang.org/x/crypto v0.0.0-20220507011949-2cf3adece122 // indirect
github.com/mattn/go-isatty v0.0.14 // indirect
golang.org/x/crypto v0.0.0-20220511200225-c6db032c6c88 // indirect
golang.org/x/sys v0.0.0-20220503163025-988cb79eb6c6 // indirect
golang.org/x/tools v0.1.10 // indirect
golang.org/x/xerrors v0.0.0-20220411194840-2f41105eb62f // indirect
gorm.io/driver/mysql v1.3.3
gorm.io/driver/postgres v1.3.5
gorm.io/driver/sqlite v1.3.2
gorm.io/driver/sqlserver v1.3.2
gorm.io/gorm v1.23.4
gorm.io/gorm v1.23.5
lukechampine.com/uint128 v1.2.0 // indirect
modernc.org/libc v1.16.8 // indirect
modernc.org/opt v0.1.3 // indirect
modernc.org/sqlite v1.17.2 // indirect
)

replace gorm.io/gorm => ./gorm
2 changes: 1 addition & 1 deletion test.sh
Expand Up @@ -17,7 +17,7 @@ for dialect in "${dialects[@]}" ; do
if [[ $(grep TEST_DRIVER main_test.go) =~ "${dialect}" ]]
then
echo "testing ${dialect}..."
GORM_DIALECT=${dialect} go test -race -count=1 -v ./...
GORM_DIALECT=${dialect} CGO_ENABLED=0 go test -count=1 -tags purego -v ./...
else
echo "skip ${dialect}..."
fi
Expand Down