Nineya
Home
Blog
软著申请
Gorm The Migrator wraps the DB logger and always print out the SQL in dry run
2025-01-15 04:13:06
2838
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
2025-01-15 04:13:04
1947
When I use the JSON type in MySQL,select data from JSON fields,Return prompt “Error 1815 (HY000): [9001, 202407181051541...
Gorm 表字段的数据类型定义错误,更新生成SQL不正确,gorm没有报告错误
2025-01-15 04:13:01
920
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?
2025-01-15 04:12:57
1853
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
2025-01-15 04:12:54
3874
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开启的时候内存泄露
2025-01-15 04:12:52
2287
DescriptionPrepareStmt=true开启的时候内存泄露,如果有大批量数据的更新或者插入,内存会一直增长 生产环境开启之后,内存耗尽导致宕机2次Comment From: github-actions[bot]The iss...
Gorm 官网推荐的github.com/cengsin/oracle驱动有问题,需要修订
2025-01-15 04:12:49
1417
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?
2025-01-15 04:12:46
2699
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
2025-01-15 04:12:44
4690
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
2025-01-15 04:12:41
2028
Describe the featureCurrently if you call AddCars([]Cars{}) it will throw an error on DB layer, instead of success messa...
Gorm Postgres删除约束时,未处理根据schema进行的方式
2025-01-15 04:12:38
1435
GORM Playground Linkhttps://github.com/go-gorm/playground/pull/1Description当使用Postgres删除约束时,未处理根据schema进行的方式,我的表时在自定义的sc...
Gorm Savepoint names can be duplicated
2025-01-15 04:12:31
1599
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
2025-01-15 04:12:28
881
When I do the normal DB.AutoMigrate(&struct) the gorm tags from the struct get imlpemented in the Db but when I useD...
Gorm 中文文档里的问题
2025-01-15 04:12:26
922
GORM Playground Linkhttps://github.com/go-gorm/playground/pull/1Description使用结构体进行更新时,不会自动添加updated_at字段,并且设置了钩子函数Before...
Gorm 多次调用db.AutoMigrate()会对之前的model重复执行
2025-01-15 04:12:23
587
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
2025-01-15 04:12:17
1220
GORM Playground Linkhttps://github.com/go-gorm/playground/pull/717DescriptionStarting with gorm 1.25.6 I can't automatic...
Gorm 关于在BeforeUpdate钩子函数中执行变更字段的问题
2025-01-15 04:12:15
1127
Your Question我在BeforeUpdate钩子函数中有个需求想统一变更修改人字段,于是使用tx.Statement.SetColumn("modify_user", xxx)设置,但是出现了问题The document you ...
Gorm btree_gist constraint example
2025-01-15 04:12:12
1906
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
2025-01-15 04:12:10
1773
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?
2025-01-15 04:12:07
212
Your Questionhow to add comment for a table(not field) by using automigrate?The document you expected this should be exp...
上一页
下一页
1
…
914
915
916
917
918
…
2246
.