@@ -7,19 +7,20 @@ diff --git a/tests/.gitignore b/tests/.gitignore
7
7
diff --git a/tests/go.mod b/tests/go.mod
8
8
--- a/tests/go.mod
9
9
+++ b/tests/go.mod
10
- @@ -7,12 +7,12 @@ require (
11
- github.com/jackc/pgx/v5 v5 .3.1 // indirect
10
+ @@ -6,9 +6,10 @@ require (
11
+ github.com/google/uuid v1 .3.0
12
12
github.com/jinzhu/now v1.1.5
13
- github.com/lib/pq v1.10.8
14
- - github.com/mattn/go-sqlite3 v1.14.16 // indirect
15
- + github.com/ncruces/go-sqlite3 v0.7.2
13
+ github.com/lib/pq v1.10.9
14
+ + github.com/ncruces/go-sqlite3 v0.8.3
16
15
+ github.com/ncruces/go-sqlite3/gormlite v0.0.0
17
- gorm.io/driver/mysql v1.5.0
18
- gorm.io/driver/postgres v1.5.0
19
- - gorm.io/driver/sqlite v1.5.0
20
- gorm.io/driver/sqlserver v1.5.1
21
- - gorm.io/gorm v1.25.1
22
- + gorm.io/gorm v1.25.2
16
+ gorm.io/driver/mysql v1.5.2-0.20230612053416-48b6526a21f0
17
+ gorm.io/driver/postgres v1.5.3-0.20230607070428-18bc84b75196
18
+ - gorm.io/driver/sqlite v1.5.2
19
+ gorm.io/driver/sqlserver v1.5.2-0.20230613072041-6e2cde390b0a
20
+ gorm.io/gorm v1.25.2
21
+ )
22
+ @@ -27,4 +28,4 @@ require (
23
+ golang.org/x/text v0.11.0 // indirect
23
24
)
24
25
25
26
- replace gorm.io/gorm => ../
@@ -40,3 +41,12 @@ diff --git a/tests/tests_test.go b/tests/tests_test.go
40
41
"gorm.io/driver/sqlserver"
41
42
"gorm.io/gorm"
42
43
"gorm.io/gorm/logger"
44
+ @@ -89,7 +91,7 @@ func OpenTestConnection(cfg *gorm.Config) (db *gorm.DB, err error) {
45
+ db, err = gorm.Open(mysql.Open(dbDSN), cfg)
46
+ default:
47
+ log.Println("testing sqlite3...")
48
+ - db, err = gorm.Open(sqlite.Open(filepath.Join(os.TempDir(), "gorm.db?_foreign_keys=on")), cfg)
49
+ + db, err = gorm.Open(sqlite.Open("file:"+filepath.Join(os.TempDir(), "gorm.db")+"?_pragma=busy_timeout(1000)&_pragma=foreign_keys(1)"), cfg)
50
+ }
51
+
52
+ if err != nil {
0 commit comments