Gorm The Migrator wraps the DB logger and always print out the SQL in dry run

GORM Playground LinkSorry in advance if I am not posting a gorm playground link but as what I am reporting it's not a cr...

Gorm When I use the JSON type in MySQL

When I use the JSON type in MySQL,select data from JSON fields,Return prompt “Error 1815 (HY000): [9001, 202407181051541...

Gorm 表字段的数据类型定义错误,更新生成SQL不正确,gorm没有报告错误

gorm 版本 v1```type Player struct { Id int64 age string }player := Player{}orm.Find(&player,1).Erroro...

Gorm How to chanage value in Callback.Row register function?

How to chanage value in Callback.Row register function?Some fields in my database are encrypted. When performing a query...

Gorm When I do Find(&obj) in contex cancelled state, it falls into panic state v1.25.11

When I do Find(&obj) in contex cancelled state, it falls into panic state. This situation started to occur with v1.2...

Gorm PrepareStmt=true开启的时候内存泄露

DescriptionPrepareStmt=true开启的时候内存泄露,如果有大批量数据的更新或者插入,内存会一直增长 生产环境开启之后,内存耗尽导致宕机2次Comment From: github-actions[bot]The iss...

Gorm 官网推荐的github.com/cengsin/oracle驱动有问题,需要修订

GORM Playground Linkhttps://github.com/go-gorm/playground/pull/1Description2024/07/23 15:13:41 ERROR ▶ 0004 Failed to...

Gorm How to select all the columns in Join query?

Let's say I want to join query this two tables:type A struct{ Name string Age int64}type B struct{ Name string Email...

Gorm Join Preload panics

GORM Playground Linkhttps://github.com/go-gorm/playground/pull/735DescriptionWhen using Join and Preload together, if we...

Gorm Improve adding empty array throws an error: empty slice found

Describe the featureCurrently if you call AddCars([]Cars{}) it will throw an error on DB layer, instead of success messa...

Gorm Postgres删除约束时,未处理根据schema进行的方式

GORM Playground Linkhttps://github.com/go-gorm/playground/pull/1Description当使用Postgres删除约束时,未处理根据schema进行的方式,我的表时在自定义的sc...

Gorm Savepoint names can be duplicated

Descriptionhttps://github.com/go-gorm/gorm/blob/6d64e31965f5c9c383e351683052d7aec68c56b5/finisher_api.go?#L522In this li...

Gorm DB.Table(myTable).AutoMigrate(&myStruct) does not implement the gorm struct tags like uniqueIndex:idx_name on that struct

When I do the normal DB.AutoMigrate(&struct) the gorm tags from the struct get imlpemented in the Db but when I useD...

Gorm 中文文档里的问题

GORM Playground Linkhttps://github.com/go-gorm/playground/pull/1Description使用结构体进行更新时,不会自动添加updated_at字段,并且设置了钩子函数Before...

Gorm 多次调用db.AutoMigrate()会对之前的model重复执行

Comment From: github-actions[bot]The issue has been automatically marked as stale as it missing playground pull request ...

Gorm Can't AutoMigrate() tables with uniqueIndex since v1.25.6 on MySQL

GORM Playground Linkhttps://github.com/go-gorm/playground/pull/717DescriptionStarting with gorm 1.25.6 I can't automatic...

Gorm 关于在BeforeUpdate钩子函数中执行变更字段的问题

Your Question我在BeforeUpdate钩子函数中有个需求想统一变更修改人字段,于是使用tx.Statement.SetColumn("modify_user", xxx)设置,但是出现了问题The document you ...

Gorm btree_gist constraint example

Your QuestionI'm trying to implement a btree_gist constraint with gorm struct tags. It should check that there are no ov...

Gorm TableName on dynamic generated strucs

Your QuestionHello! I want to know if it is possible to create a table with relations from a struct created by reflectio...

Gorm how to add comment for a table(not field) by using automigrate?

Your Questionhow to add comment for a table(not field) by using automigrate?The document you expected this should be exp...
上一页 下一页
.