Nineya
Home
Blog
软著申请
Gorm 升级gorm 使用postgres后报错 LastInsertId is not supported by this driver
2025-01-15 04:09:53
1679
原来使用正常,版本为gorm.io/gorm v1.23.8gorm.io/driver/postgres v1.3.9升级后gorm.io/gorm v1.25.8gorm.io/driver/postgres v1.5.7就报错了Las...
Gorm How to omit '' columns in Upsert?
2025-01-15 04:09:47
1870
Your QuestionI want to skip '' values when updating with Upsert.The document you expected this should be explainedtype T...
Gorm Null Fields When Using FullSaveAssociations and Updates
2025-01-15 04:09:44
3069
Your QuestionWhen using the statement below, some fields on associated table are been updated to null.database.Db.WithCo...
Gorm PrepareStmt=true的时候内存泄露
2025-01-15 04:09:42
655
PrepareStmt=true开启的时候内存泄露,如果有大批量数据的更新或者插入,内存会一直增长生产环境开启之后,内存耗尽导致宕机2次Comment From: github-actions[bot]The issue has been ...
Gorm when Offset + Limit + Find + Count ,panic: sql: no rows in result set
2025-01-15 04:09:40
8328
What version of Go are you using (go version)?1.14Which database and its version are you using?msyqlPlease provide a com...
Gorm 如何使用gorm在同一个连接上,切换到不同的数据库?多租户时碰到了这个问题。
2025-01-15 04:09:37
116
Your Question如何使用gorm在同一个连接上,切换到不同的数据库?多租户时碰到了这个问题。The document you expected this should be explainedExpected answer
Gorm 如何使用gorm在同一个连接上,切换到不同的数据库?多租户时碰到了这个问题。
2025-01-15 04:09:35
82
Describe the feature如何使用gorm在同一个连接上,切换到不同的数据库?多租户时碰到了这个问题。MotivationRelated Issues
Gorm Error: simple protocol queries must be run with client_encoding=UTF8
2025-01-15 04:09:33
1257
We have a one-time query failure with an error - simple protocol queries must be run with client_encoding=UTF8Query is S...
Gorm Using REPLACE INTO instead of INSERT INFO in db.Create(...) for sqlite
2025-01-15 04:09:30
1113
Your QuestionI have a code:package mainimport ( "gorm.io/driver/sqlite" // v1.2.4 "gorm.io/gorm&quo...
Gorm How to log transaction info
2025-01-15 04:09:28
1436
How to log transaction infoThis is an example of Rails:2.6.3 :001 > User.create(name: "Bob") (0.9ms) SEL...
Gorm about use select and distinct
2025-01-15 04:09:25
2230
Your QuestionTitle: Inconsistent Behavior of Distinct with and without Parameters in GORMDescription:I've noticed some i...
Gorm update 接口是否可以更新主键的值?
2025-01-15 04:09:23
2791
Your Questionupdate 接口是否可以更新主键的值?Can the update interface update the primary key value?The document you expected this sh...
Gorm Race condition on Relation
2025-01-15 04:09:20
21239
I'm getting a race condition warning when running a daemon I'm coding. Linux 3.10, MySQL 5.7.16, Go 1.9, GORM 1.25.10:WA...
Gorm Join in combination with preload does not works as intended (basic usage)
2025-01-15 04:09:17
12182
GORM Playground Linkhttps://github.com/go-gorm/playground/pull/666DescriptionGiven this basic test : package mainimport ...
Gorm Many to many preload no working, is it a bug?
2025-01-15 04:09:15
2558
Your QuestionI have this models:Order struct { ID string `gorm:"size:191;index"` Customer string ...
Gorm No new version since v1.25.10 Apr 26, 2024
2025-01-15 04:09:12
701
Is there any reason why there is no new version with the latest commits?Comment From: github-actions[bot]The issue has b...
Gorm use pgroll for automigration
2025-01-15 04:09:09
152
Describe the featureUse pgroll to perform automigration (as an option)MotivationReduce possible downtimes or conflicts. ...
Gorm @id is not friendly to insert map struct
2025-01-15 04:09:07
1757
GORM Playground Linkhttps://github.com/go-gorm/playground/pull/739DescriptionThe data does not exist in multiple databas...
Gorm AfterUpdate hooks fails for nil uuid pointer
2025-01-15 04:09:05
2633
GORM Playground Linkhttps://github.com/go-gorm/playground/pull/747DescriptionWe use gorm hooks but we are seeing a probl...
Gorm 多对多查询,中间表外键的问题
2025-01-15 04:09:02
1594
表1:type Speaker struct { Id int64 gorm:"primaryKey;autoIncrement;column:id" UserName string gorm:...
上一页
下一页
1
…
917
918
919
920
921
…
2246
.