Skip to content

Commit 83e2587

Browse files
committed
Gorm v1.25.12.
1 parent 6101deb commit 83e2587

File tree

4 files changed

+9
-11
lines changed

4 files changed

+9
-11
lines changed

gormlite/error_translator_test.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,18 @@ package gormlite
33
import (
44
"testing"
55

6+
"github.com/ncruces/go-sqlite3/vfs/memdb"
67
"gorm.io/gorm"
78
"gorm.io/gorm/logger"
89
)
910

1011
func TestErrorTranslator(t *testing.T) {
11-
// This is the DSN of the in-memory SQLite database for these tests.
12-
const InMemoryDSN = "file:testdatabase?mode=memory&cache=shared"
13-
1412
// This is the example object for testing the unique constraint error
1513
type Article struct {
1614
ArticleNumber string `gorm:"unique"`
1715
}
1816

19-
db, err := gorm.Open(Open(InMemoryDSN), &gorm.Config{
17+
db, err := gorm.Open(Open(memdb.TestDB(t)), &gorm.Config{
2018
Logger: logger.Default.LogMode(logger.Silent),
2119
TranslateError: true})
2220

gormlite/go.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ go 1.21
55
toolchain go1.23.0
66

77
require (
8-
github.com/ncruces/go-sqlite3 v0.18.1
9-
gorm.io/gorm v1.25.11
8+
github.com/ncruces/go-sqlite3 v0.18.3
9+
gorm.io/gorm v1.25.12
1010
)
1111

1212
require (

gormlite/go.sum

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ 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.18.1 h1:iN8IMZV5EMxpH88NUac9vId23eTKNFUhP7jgY0EBbNc=
6-
github.com/ncruces/go-sqlite3 v0.18.1/go.mod h1:eEOyZnW1dGTJ+zDpMuzfYamEUBtdFz5zeYhqLBtHxvM=
5+
github.com/ncruces/go-sqlite3 v0.18.3 h1:tyMa75uh7LcINcfo0WrzOvcTkfz8Hqu0TEPX+KVyes4=
6+
github.com/ncruces/go-sqlite3 v0.18.3/go.mod h1:HAwOtA+cyEX3iN6YmkpQwfT4vMMgCB7rQRFUdOgEFik=
77
github.com/ncruces/julianday v1.0.0 h1:fH0OKwa7NWvniGQtxdJRxAgkBMolni2BjDHaWTxqt7M=
88
github.com/ncruces/julianday v1.0.0/go.mod h1:Dusn2KvZrrovOMJuOt0TNXL6tB7U2E8kvza5fFc9G7g=
99
github.com/tetratelabs/wazero v1.8.0 h1:iEKu0d4c2Pd+QSRieYbnQC9yiFlMS9D+Jr0LsRmcF4g=
@@ -12,5 +12,5 @@ golang.org/x/sys v0.25.0 h1:r+8e+loiHxRqhXVl6ML1nO3l1+oFoWbnlu2Ehimmi34=
1212
golang.org/x/sys v0.25.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
1313
golang.org/x/text v0.18.0 h1:XvMDiNzPAl0jr17s6W9lcaIhGUfUORdGCNsuLmPG224=
1414
golang.org/x/text v0.18.0/go.mod h1:BuEKDfySbSR4drPmRPG/7iBdf8hvFMuRexcpahXilzY=
15-
gorm.io/gorm v1.25.11 h1:/Wfyg1B/je1hnDx3sMkX+gAlxrlZpn6X0BXRlwXlvHg=
16-
gorm.io/gorm v1.25.11/go.mod h1:xh7N7RHfYlNc5EmcI/El95gXusucDrQnHXe0+CgWcLQ=
15+
gorm.io/gorm v1.25.12 h1:I0u8i2hWQItBq1WfE0o2+WuL9+8L21K9e2HHSTE/0f8=
16+
gorm.io/gorm v1.25.12/go.mod h1:xh7N7RHfYlNc5EmcI/El95gXusucDrQnHXe0+CgWcLQ=

gormlite/test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ rm -rf gorm/ tests/
77
go work use -r .
88
go test
99

10-
git clone --branch v1.25.11 --filter=blob:none https://github.com/go-gorm/gorm.git
10+
git clone --branch v1.25.12 --filter=blob:none https://github.com/go-gorm/gorm.git
1111
mv gorm/tests tests
1212
rm -rf gorm/
1313

0 commit comments

Comments
 (0)