Skip to content

Commit 47fe032

Browse files
committed
Updated dependencies.
1 parent bdfe279 commit 47fe032

File tree

3 files changed

+25
-15
lines changed

3 files changed

+25
-15
lines changed

gormlite/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ module github.com/ncruces/go-sqlite3/gormlite
33
go 1.19
44

55
require (
6-
github.com/ncruces/go-sqlite3 v0.8.2
6+
github.com/ncruces/go-sqlite3 v0.8.3
77
gorm.io/gorm v1.25.2
88
)
99

gormlite/go.sum

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@ github.com/jinzhu/inflection v1.0.0 h1:K317FqzuhWc8YvSVlFMCCUb36O/S9MCKRDI7QkRKD
22
github.com/jinzhu/inflection v1.0.0/go.mod h1:h+uFLlag+Qp1Va5pdKtLDYj+kHp5pxUVkryuEj+Srlc=
33
github.com/jinzhu/now v1.1.5 h1:/o9tlHleP7gOFmsnYNz3RGnqzefHA47wQpKrrdTIwXQ=
44
github.com/jinzhu/now v1.1.5/go.mod h1:d3SSVoowX0Lcu0IBviAWJpolVfI5UJVZZ7cO71lE/z8=
5-
github.com/ncruces/go-sqlite3 v0.8.2 h1:U28YYK/Kl5aUsRljcnvShZZHBgWLzuR26zUntP4uNbQ=
6-
github.com/ncruces/go-sqlite3 v0.8.2/go.mod h1:yGeN+m3ug1wD/+Kg2A3TnochT6H6Or6+2q8KHN//r9k=
5+
github.com/ncruces/go-sqlite3 v0.8.3 h1:kYUAqDpZ0OT+snTH1yWyxq9QSJ22HoM3WKfFEL4N694=
6+
github.com/ncruces/go-sqlite3 v0.8.3/go.mod h1:DUdzKfMlIFmSLAtNHdIgxbdax/5NsQx2RlIlVO7EWfU=
77
github.com/ncruces/julianday v0.1.5 h1:hDJ9ejiMp3DHsoZ5KW4c1lwfMjbARS7u/gbYcd0FBZk=
88
github.com/ncruces/julianday v0.1.5/go.mod h1:Dusn2KvZrrovOMJuOt0TNXL6tB7U2E8kvza5fFc9G7g=
99
github.com/tetratelabs/wazero v1.3.1 h1:rnb9FgOEQRLLR8tgoD1mfjNjMhFeWRUk+a4b4j/GpUM=
1010
github.com/tetratelabs/wazero v1.3.1/go.mod h1:wYx2gNRg8/WihJfSDxA1TIL8H+GkfLYm+bIfbblu9VQ=
1111
golang.org/x/sys v0.10.0 h1:SqMFp9UcQJZa+pmYuAKjd9xq1f0j5rLcDIk0mj4qAsA=
1212
golang.org/x/sys v0.10.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
13-
golang.org/x/text v0.10.0 h1:UpjohKhiEgNc0CSauXmwYftY1+LlaC75SJwh0SgCX58=
13+
golang.org/x/text v0.11.0 h1:LAntKIrcmeSKERyiOh0XMV39LXS8IE9UL2yP7+f5ij4=
1414
gorm.io/gorm v1.25.2 h1:gs1o6Vsa+oVKG/a9ElL3XgyGfghFfkKA2SInQaCyMho=
1515
gorm.io/gorm v1.25.2/go.mod h1:L4uxeKpfBml98NYqVqwAdmV1a2nBtAec/cf3fpucW/k=

gormlite/tests.patch

Lines changed: 21 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,20 @@ diff --git a/tests/.gitignore b/tests/.gitignore
77
diff --git a/tests/go.mod b/tests/go.mod
88
--- a/tests/go.mod
99
+++ 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
1212
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
1615
+ 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
2324
)
2425

2526
-replace gorm.io/gorm => ../
@@ -40,3 +41,12 @@ diff --git a/tests/tests_test.go b/tests/tests_test.go
4041
"gorm.io/driver/sqlserver"
4142
"gorm.io/gorm"
4243
"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

Comments
 (0)