Gorm 升级gorm 使用postgres后报错 LastInsertId is not supported by this driver

原来使用正常,版本为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?

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

Your QuestionWhen using the statement below, some fields on associated table are been updated to null.database.Db.WithCo...

Gorm PrepareStmt=true的时候内存泄露

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

What version of Go are you using (go version)?1.14Which database and its version are you using?msyqlPlease provide a com...

Gorm 如何使用gorm在同一个连接上,切换到不同的数据库?多租户时碰到了这个问题。

Your Question如何使用gorm在同一个连接上,切换到不同的数据库?多租户时碰到了这个问题。The document you expected this should be explainedExpected answer

Gorm 如何使用gorm在同一个连接上,切换到不同的数据库?多租户时碰到了这个问题。

Describe the feature如何使用gorm在同一个连接上,切换到不同的数据库?多租户时碰到了这个问题。MotivationRelated Issues

Gorm Error: simple protocol queries must be run with client_encoding=UTF8

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

Your QuestionI have a code:package mainimport ( "gorm.io/driver/sqlite" // v1.2.4 "gorm.io/gorm&quo...

Gorm How to log transaction info

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

Your QuestionTitle: Inconsistent Behavior of Distinct with and without Parameters in GORMDescription:I've noticed some i...

Gorm update 接口是否可以更新主键的值?

Your Questionupdate 接口是否可以更新主键的值?Can the update interface update the primary key value?The document you expected this sh...

Gorm Race condition on Relation

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)

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?

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

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

Describe the featureUse pgroll to perform automigration (as an option)MotivationReduce possible downtimes or conflicts. ...

Gorm @id is not friendly to insert map struct

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

GORM Playground Linkhttps://github.com/go-gorm/playground/pull/747DescriptionWe use gorm hooks but we are seeing a probl...

Gorm 多对多查询,中间表外键的问题

表1:type Speaker struct { Id int64 gorm:"primaryKey;autoIncrement;column:id" UserName string gorm:...
上一页 下一页
.