Gorm fatal error: concurrent map read and map write [with reproduction]

GORM Playground LinkReproducible, but might need to run 100+ times to get it.Had to disable migrations, siince they seem...

Gorm 关于在BeforeUpdate钩子函数中执行变更字段的问题

Your Question我在BeforeUpdate钩子函数中有个需求想统一变更修改人字段,于是使用tx.Statement.SetColumn("modify_user", xxx)设置,但是出现了问题The document you ...

Gorm gorm.G[E](r.db).Count undefined 1.30.3 to 1.30.5

GORM Playground Linkhttps://github.com/go-gorm/playground/pull/1Descriptiongorm v1.30.5 give error into method Countgorm...

Gorm postgresql : UPDATE query formed incorrectly, update ... set ... FROM ... where

GORM Playground Linkhttps://github.com/go-gorm/playground/pull/746 provided by @ajhodges DescriptionI have an update exe...

Gorm Can soft delete specify a delId field that is set to the value of id instead of creation time to avoid deletion conflicts?

Describe the featureThe feature request is to enhance the soft delete functionality by allowing the specification of a d...

Gorm Postgres hopes to add string.agg to replace GroupConcat

Describe the featureDescribe the featurecount, err := qu.WithContext(ctx). Select( qu.UID, ...

Gorm Count fails when using select within scopes

GORM Playground Linkhttps://github.com/go-gorm/playground/pull/796DescriptionWhen using select within a scope, the Count...

Gorm 使用Callback填充uuid,批量插入的时候,最后一条数据id为空

结构体// UUID UUIDtype UUID struct { Id string `gorm:"type:varchar(40);primary_key;" sql:"comment:'UUID'&...

Gorm Generics API Joins() fails on Oracle due to hardcoded "AS" before table alias

GORM Playground Linkhttps://github.com/go-gorm/playground/pull/825DescriptionWhen using GORM generics Joins with a subqu...

Gorm model value required when using preload

When I run tx.Preload, get error: "model value required when using preload"tx *gorm.DB tx = tx.Preload("Tags"...

Gorm Reuse context inside Gorm plugin "fails"

Your QuestionI created a pagination plugin that basically do a select count(*) once a select query is triggered. The cod...

Gorm Association removal not handled by Updates() even with FullSaveAssociations for many2many

For a simple model with a self-referential many2many link (Depends) an Updates() does not remove associations.It seems t...

Gorm Replace in Many2Many

Your QuestionHow to use the Association#Replace correctly? I keep getting duplicated key not allowed error when I'm repl...

Gorm Boolean fields cant be set to false if they have a default tag which is set to true

GORM Playground Linkhttps://github.com/go-gorm/playground/pull/824DescriptionThis is a duplicate of #7543 which the gith...

Gorm bool field with default:true always stored as true, even when explicitly set to false in JSON

I'm encountering unexpected behavior with GORM (v1.30.1) when inserting a record that includes a boolean field with defa...

Gorm I want to implement global error handling in Gorm

Your QuestionI want to implement global error handling in Gorm, for example, if a 'too many connections' error occurs du...

Gorm how to control timeout for every single sql statement,like create,update,query,raw sql

Your Questionhow to control timeout for every single sql statement,like create,update,query,raw sqlThe document you expe...

Gorm Transaction not commit under certain special circumstances.

Your QuestionversionMySQL 8.1.0gorm.io/driver/mysql v1.5.1gorm.io/gorm v1.25.2DescriptionI ran into a really weird probl...

Gorm Support duckdb

Support duckdbSupport duckdbComment From: github-actions[bot]The issue has been automatically marked as stale as it miss...

Gorm Bug: SetColumn can possible update wrong column I BeforeUpdate hook

GORM Playground Linkhttps://github.com/go-gorm/playground/pull/707DescriptionRelated to #4990The SetColumn updates the w...

下一页
.