Gorm Breaking change since v1.24.4: Custom serializer on nil-slices

I already reported this at https://github.com/go-gorm/postgres/issues/159 a while ago, but it was ignored until now, pro...

Gorm Where Condition Build Issue

GORM Playground Linkhttps://github.com/go-gorm/playground/pull/728DescriptionI have my sql query with multi Where condit...

Gorm Is there any option to return null instead object with zero id in belong relations ?

Your QuestionIs there any option to return null instead object with zero id in belong relations ?The document you expect...

Gorm Create not Omitting Embedded Structs

I've posted this SO question to see if there was a way to handle this:https://stackoverflow.com/questions/75943586/gorm-...

Gorm db.Save 方法存在数据的情况修改时会将 'created_at' 修改成 '0000-00-00 00:00:00'

GORM Playground Linkhttps://github.com/go-gorm/playground/pull/1Description在结构体中添加某个主键,使用db.Save方法修改时,第一次成功创建数据,第二次的时候将c...

Gorm Allow specify table name using tag

Describe the featureAccording to https://gorm.io/docs/conventions.html#TableName custom table name for given struct cann...

Gorm 使用join关联查询数据时候发现关联表没有自动过滤掉软删除的数据

GORM Playground Linkhttps://github.com/go-gorm/playground/pull/724Description代码: err := DB.Debug().Model(artistModel)...

Gorm gorm join时候没有对关联表的软删除进行过滤

系统版本: mac os 14.4.1gorm版本: v1.25.10golang版本: 1.22.2model 如下type Artist struct { ID string `...

Gorm Duplicate records with the same primary key returned in a short period of time

I am experiencing an issue where two identical records with the same primary key are returned when querying the database...

Gorm prepareStmt is not support for ping function

ping funciton skipped, while we set the prepare-stmt is true, for version v1.99.3if anything wrong for the dsn or connec...

Gorm GORM save to map causes crash when model type includes primary key field (solution shown)

When using the save to map feature, and specifying a model type that includes the table's PK, the code always panics.Whe...

Gorm main.go:5:2: gorm.io/gorm@v1.25.9: Get "https://proxy.golang.org/gorm.io/gorm/@v/v1.25.9.zip": dial tcp 172.217.163.49:443: i/o timeout

Your QuestionThe document you expected this should be explainedExpected answerComment From: GHITonymy golang version:1.2...

Gorm ERROR: prepared statement "lrupsc_1_20" already exists, and plansource is not the same. (SQLSTATE 42P05)

执行sql如下: { "key": "gorm.opentracing.sql", "type": "string", "value": "DELETE FROM \"project_djln6wy4\".\"ODS_station_...

Gorm 如何设置ID自增的起始位

Your QuestionThe document you expected this should be explainedExpected answer请问如何设置ID自增的起始位?Comment From: almas1992ID自增...

Gorm Behavior of .Not(Where().Or()) has changed

GORM Playground Linkhttps://github.com/go-gorm/playground/pull/711https://github.com/go-gorm/playground/pull/710Descript...

Gorm N+1 Queries with Joins("Company").Preload("Company.Addresses") on Addresses

GORM Playground Linkhttps://github.com/go-gorm/playground/pull/722VersionSuperior to v1.25.6DescriptionThis issues to de...

Gorm Postgresql: setting charset and parseTime

Hello!I'm trying to connect to my postgresql database.I'm trying:gorm.Open("postgres", fmt.Sprintf(`user=%v pa...

Gorm Empty primary key being inserted

GORM Playground Linkhttps://github.com/go-gorm/playground/pull/587DescriptionFrom what I understand about gorm, struct f...

Gorm Save struct with same relation in associated table

Your QuestionInserting the second user Jack returns the result CompanyID 0. Name: Bob ➜ CompanyID: 1Name: Jack ➜ Company...

Gorm What happens when IN clause is too big?

Your QuestionWhat happens if in the query, there are too many parameters within the IN clause that exceed the DBMS limit...
上一页 下一页
.