gorm/tests/tests_pure_test.go
Ayman Bagabas 326225c4bd
feat(tests): support pure-go sqlite driver
This tests the sqlite with/out CGO, updates the minimum tests go version
to 1.18, and adds the latest go version `^1` to the sqlite CI tests.

Related: https://github.com/go-gorm/sqlite/pull/161
2023-07-05 20:32:05 -04:00

14 lines
224 B
Go

//go:build !cgo || (cgo && pure)
// +build !cgo cgo,pure
package tests_test
import (
"os"
"path/filepath"
)
var (
sqliteDSN = filepath.Join(os.TempDir(), "gorm.db?_pragma=busy_timeout(5000)&_pragma=foreign_keys(1)")
)