Nineya
Home
Blog
软著申请
Gorm Create with non-zero defaults ignores values being inserted
2025-01-14 08:16:15
4354
When a struct has gorm default set to a non-zero value, if the value being created is a zero value, it will be ignored a...
Gorm Field name start with ip prefix is not dominated by gorm
2025-01-14 08:16:12
1422
GORM Playground Linkhttps://github.com/go-gorm/playground/pull/502DescriptionPostgreSQL DDLCREATE TABLE example ( ipv...
Gorm db.Create(&orders); if qps 500 create, then "err:commands out of sync. Did you run multiple statements at once?" then add lock it's all right
2025-01-14 08:16:10
148
Your QuestionThe document you expected this should be explainedExpected answerComment From: lxylxy888666done, not gorm e...
Gorm 数据类型对应问题
2025-01-14 08:16:07
765
就是有没有gorm model的type和mysql数据对应的文档Comment From: github-actions[bot]The issue has been automatically marked as stale as it...
Gorm gorm deadlock may occur while initialization config 'SkipDefaultTransaction' set to false(default) and 'PrepareStmt' set to true
2025-01-14 08:16:04
5191
Prerequisites: 'PrepareStmt' been set to true while initializing gormwhen 'SkipDefaultTransaction' not set or set to fa...
Gorm db.Unscoped() parsed sub query sql statement is wrong
2025-01-14 08:16:02
3282
GORM Playground LinkSorry, no playground pull request here, but i will create a PR when this bug is confirm as a bug, no...
Gorm delete from map
2025-01-14 08:15:59
818
is there a fun to delete data from map?for example:db.table("xxx").where(cond).delete()no need to pass the model ?Commen...
Gorm uniqueIndex and size constraints are broken, at least for sqlite
2025-01-14 08:15:56
3044
DescriptionI'm using sqlite and gorm isn't creating the proper length or uniqueness constraints for my models. (I didn't...
Gorm Primary key can't be created if specify index as well
2025-01-14 08:15:52
1222
GORM Playground Linkhttps://github.com/go-gorm/playground/pull/497DescriptionWhen I do many2many relation, sometimes you...
Gorm [Feature] 动态多数据切换
2025-01-14 08:15:50
291
Describe the feature需要一个可以实时切换db的功能Motivation在sass服务中每个用户不同的db,可能是动态创建的 DBResolver 没有解决这个问题,维护一个"/"路径连接,使用orm进行操作的时候指定db...
Gorm Updates operation becomes too slow after updating from 1.9 to 1.22
2025-01-14 08:15:47
946
Your Question** init ****version-1.9:dbClient, err := gorm.Open("mysql", dsn)version-1.22:dbClient, err := gorm.Open(mys...
Gorm 创建时,如果包含设置了 Serializer 并且为空的值,会报错
2025-01-14 08:15:44
818
复现方法:在测试 TestSerializer 中 106行加下面的代码data.JobInfo = Job{}tests/serializer_test.go:106Create 方法将会报错: serializer_test.go:10...
Gorm update the same field
2025-01-14 08:15:39
671
Comment From: xujiaxindudusorry,i found the answer in your Documentationbest regardsComment From: github-actions[bot]The...
Gorm Log only parameterized SQL statements without any values
2025-01-14 08:15:37
2031
I'm logging this as a bug because it's a security problem.DescriptionThis was mentioned in https://github.com/go-gorm/go...
Gorm Associated records are not created with default values
2025-01-14 08:15:34
13206
DescriptionWhen creating a record with associations, only the top level record is created if all the associated records ...
Gorm ERROR: ON CONFLICT DO UPDATE command cannot affect row a second time (SQLSTATE 21000)
2025-01-14 08:15:30
1542
Hi guys, today I am testing gorm (gorm.io/gorm v1.23.8 // indirect) upsert and getting this error below. Is this fixed a...
Gorm the primary key not rewrited to entity after inserting
2025-01-14 08:15:27
1469
DescriptionInteresting, when I defined a entity struct using a nested id module, which tagged with gorm:"embedded", afte...
Gorm 关于嵌套查询,preload后过滤条件的问题
2025-01-14 08:15:25
6790
GORM Playground Linkhttps://github.com/go-gorm/playground/pull/1Description`type User struct { gorm.Model Name st...
Gorm Text search with gorm
2025-01-14 08:15:22
939
Hello,How can I make a text search with go? I try with this code but not thing happenname := "Any Name"tx := a...
Gorm Does GORM have a way to do a migration dry run / check if DB needs any changes?
2025-01-14 08:15:19
2351
Does GORM have a way to do a migration dry run / check if DB needs any changes?Should be answered on migration docs page...
上一页
下一页
1
…
981
982
983
984
985
…
2246
.