Gorm Is this error a bug

Your Questionmy code like:db := G.DBif in.BrandId != 0 { db = db.Where("`brand_id` = ?", in.BrandId)}if in...

Gorm More self explanatory locking code and doc improvement

Describe the featureThere is a section in documentation describing locking https://gorm.io/docs/advanced_query.html#Lock...

Gorm db.save() is not behaving as expected when updating

when i use to udpate a table called users it using the db.save(&user{}) it generate incorrect sql command for postgr...

Gorm How to get the additional info from the ManyToMany JoinTable?

Your QuestionHow to get the additional info from the ManyToMany JoinTable?case: user - language (Many-to-Many)like: ( th...

Gorm Create Foreign Key constraint without having embedded struct

Your QuestionI would like AutoMigrate to be able to perform this in my Table2: FOREIGN KEY (table1_id) REFERENCES table1...

Gorm ToSQL Func has a \\ bug

my table has a poi_info column,that type is varchar ,i save a json string into this columnthis is the string:{ "location...

Gorm Dynamic struct autoIncrement ID problem in Create error '@id' field does not exist, 动态结构体Create 时报错’@id’字段不存在

Dynamic struct autoIncrement ID problem in Create error '@id' field does not exist, statically compiled struct does not ...

Gorm Specify a nonzero value if no value is specified

Describe the featureHi, I've been using Gorm for a long time.I use uncle bob's clean architecture. My logic is that at t...

Gorm Insertion with array column type fails

GORM Playground Linkhttps://github.com/go-gorm/playground/pull/759DescriptionI want to have a table, where the colum can...

Gorm How to access other field of the model in custom serializer

How to access other field of the model from custom serializerI need to deserialize to various data types based on the va...

Gorm Batch Update Feature Request

I would love to have an option to do a Batch Update. This is different than the Batch Upsert. In general I do not like...

Gorm Automatic database reconnect

Describe the featureGORM should try to reconnect to a database when connection is lost (e.g. Network error, DB restart)A...

Gorm [Question] Is there any way to set the max db connection idle time in the gorm.Open() function?

Your QuestionHi folks,Just wondering if there's any way to set the max db connection idle time in the gorm.Open() functi...

Gorm Support for Materialized Views and With clauses in view creation

Describe the featureThe addition of views is useful, but there is no support in the options to create a materialized vie...

Gorm support dynamic sql with xml like mybatis

Describe the featureMotivationRelated IssuesComment From: saeideeCould you please add a brief motivation/use case with a...

Gorm Release Savepoint

Your QuestionWhy doesn't gorm support RELEASE SAVEPOINT? it allows the DB to free up resources by rolling the changes in...

Gorm gorm1 InstantSet -> gorm2 ?

InstantSetHi. I inherited a project that uses gorm v1, and we would like to upgrade to gorm v2. In the code, db.InstantS...

Gorm Transaction using DBResolver (two databases)

Your QuestionI am trying to use transaction in a sharded database. So I have two databases master and shard1.Following c...

Gorm Gorm 没有像Gin 的ctx.About()这样的拦截功能吗?我找了Gorm的文档貌似没有看到相关操作

Your Question我想要通过注册中间件的方式实现对Gorm的限流器,但是我尝试了,实现Plugin接口并不能操作本次查询链路终止。The document you expected this should be explained/...

Gorm feat: all APIs support context

Describe the featureCurrently, some APIs lose context, which may cause context-based functions to fail in this part of t...
上一页 下一页
.