gorm/tests/tests_cgo_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
160 B
Go

//go:build cgo && !pure
// +build cgo,!pure
package tests_test
import (
"os"
"path/filepath"
)
var (
sqliteDSN = filepath.Join(os.TempDir(), "gorm.db")
)