-
I am using mysql as database but drivers of other databases are also installed.
-
## GORM Playground Link
https://github.com/go-gorm/playground/pull/1
## Description
If there is a unique index in the generated unit test, an error will be reported.
```go
func Test_t…
-
## GORM Playground Link
https://github.com/go-gorm/playground/pull/1
## Description
用的就是最新的 gorm.io/gorm v1.25.10
设置了PrepareStmt 为true,发现在xa事务里面,执行的sql语句并不会缓存,每次都要请求db服务端去做prepare…
-
Any plans on v2 support? [gorm.io/gorm](http://v2.gorm.io/)
-
https://blog.programnotes.cn/using-gorm/
CURDCreateUpdateRetrieveorder by 常用指定从数据库检索记录时的排序方式1234567891011db.Order("age desc, name").Find(&users)// SELECT * FROM users ORDER BY age desc, name;// 多个 …
-
When I do Find(&obj) in contex cancelled state, it falls into panic state. This situation started to occur with v1.25.11.
Example code:
```go
func (p PlaylistRepository) GetPlaylistItemsByPlayl…
-
type Rule struct {
ID uint64 `gorm:"column:id" db:"id"`
Content datatypes.JSONSlice[Tag] `gorm:"column:content" type:"json"`
Version int64 `…
-
Count操作会异常,原因是gorm的Count的返回类型是int64,会提示反射类型是uint, 直接异常
panic: reflect: call of reflect.Value.Field on uint Value
goroutine 29 [running]:
reflect.Value.Field({0xdd5ce0, 0xc0004b4600, 0x187}, 0x0…
leovs updated
3 months ago
-
Any plans to update for use with [GORM V2](https://gorm.io/docs/v2_release_note.html)? The [Open](https://gorm.io/docs/v2_release_note.html#Quick-Start) function has a bit different usage than V1.
-
Can I use this with the gorm(https://github.com/jinzhu/gorm).
If yes, can you give any example code(noob here).