Gorm Forward master command is not supported for prepare statement

When using the cloud vendor SelectDB DB database for batch insertion, the following error occurs: "Forward master comman...

Gorm Order func accept interface{} type but it not order and not error when the value is not an expected type. so why not change it or add a new func.

Describe the featureThe order func is this:func (db *DB) Order(value interface{}) (tx *DB) { tx = db.getInstance() ...

Gorm Customized Join Table Select/Update

Your QuestionSay for example I have these structs:type Person struct { ID int Name string Addresses []Add...

Gorm Allow enabling TranslateError for session too instead of only globally

Describe the featureAllow enabling TranslateError for gorm.Session instead of only globally (gorm.Config)MotivationI'd l...

Gorm Defing models with foreign entities

Your Questiontype RealWorkout struct { gorm.Model TemplateID int Template Workout WorkoutID int}I have an...

Gorm Presence of .Or() messes up conditions

GORM Playground Linkhttps://github.com/go-gorm/playground/pull/835DescriptionGorm v1.31.0Function:func (r *LayoutReposit...

Gorm Generics API 批量更新不通过

rows, err := gorm.G[User](db).Where("id = ?", 111).Omit("name").Updates(ctx, map[string]interface{}{"name": "hello", "ag...

Gorm DB.ScanRows() into int variants skips all rows and returns last row

https://github.com/go-gorm/gorm/blob/b88148363a954f69fa680b152dfd96a94ffea1e1/scan.go#L179-L189Here must be if rather th...

Gorm Ability to perform “preloading” for Postgresql in a single query

Your QuestionDo we have the ability to do “preloading” in a single query? We can get data in a single query in the form ...

Gorm How to bug report of teh playground code?

You request everyone to report using your playground code. But the playground code is broken on my machineHow to report ...

Gorm GORM Performance comparison with other ORMS/Tools

Your Question@jinzhu I just wanted to show you this: https://github.com/efectn/go-orm-benchmarks It seems that Gorm is a...

Gorm Support escaping double quotes in struct tags

Describe the featureSupport escaping double quotes in struct tags.MotivationI have the following object and want to do a...

Gorm Does callbacks run for raw db call

Your QuestionAm trying to register a create callback hook for my db but it seems not to be workingpackage mainimport ( ...

Gorm Need best practice of Generics API create multiple

According https://github.com/go-gorm/gorm.io/issues/846, I try to using_ = gorm.G[[]*UsersDB](db).Create(context.Backgro...

Gorm When using save to update, if preload exists, the update result may not meet expectations.

I have two tables defined as followstype BaseModel struct { ID BigInt `gorm:"column:id;primaryKey;autoInc...

Gorm feat: support nested delete

Describe the featureSupport nested Delete by .Select("A.B").Delete(...) just like .Preload("A.B").Find(...)MotivationAt ...

Gorm Release notes for 1.25.x versions

Your QuestionI recently upgraded from version 1.25.7 to 1.25.12, which seems to have broken my Preload calls for nested ...

Gorm Context management in GORM

Your QuestionI've encountered a situation where I need to accurately detect the connection status of a database using GO...

Gorm Transaction leak using Session in Scopes

GORM Playground Linkhttps://github.com/go-gorm/playground/pull/831DescriptionInstanceSet can return a new instance https...

Gorm bug: FirstOrCreate's does not return Assign result into struct

GORM Playground Linkhttps://github.com/go-gorm/playground/pull/829Descriptionwith a valid record at age 19, i would expe...

下一页
.