Aurora Blog
Home
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...
2025-12-04 14:02:00
807
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() ...
2025-12-01 14:00:38
1507
Gorm Customized Join Table Select/Update
Your QuestionSay for example I have these structs:type Person struct { ID int Name string Addresses []Add...
2025-11-06 14:01:54
4509
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...
2025-10-19 14:00:39
1142
Gorm Defing models with foreign entities
Your Questiontype RealWorkout struct { gorm.Model TemplateID int Template Workout WorkoutID int}I have an...
2025-10-17 14:01:39
3014
Gorm Presence of .Or() messes up conditions
GORM Playground Linkhttps://github.com/go-gorm/playground/pull/835DescriptionGorm v1.31.0Function:func (r *LayoutReposit...
2025-10-17 14:01:33
2517
Gorm Generics API 批量更新不通过
rows, err := gorm.G[User](db).Where("id = ?", 111).Omit("name").Updates(ctx, map[string]interface{}{"name": "hello", "ag...
2025-10-16 14:02:30
769
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...
2025-10-13 14:00:38
2265
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 ...
2025-10-03 14:01:31
665
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 ...
2025-09-30 14:01:48
389
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...
2025-09-30 14:01:44
2365
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...
2025-09-30 14:01:36
663
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 ( ...
2025-09-29 14:00:33
5460
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...
2025-09-29 14:00:31
645
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...
2025-09-28 14:00:30
4540
Gorm feat: support nested delete
Describe the featureSupport nested Delete by .Select("A.B").Delete(...) just like .Preload("A.B").Find(...)MotivationAt ...
2025-09-26 14:01:30
876
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 ...
2025-09-24 14:01:01
1001
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...
2025-09-22 14:00:42
1486
Gorm Transaction leak using Session in Scopes
GORM Playground Linkhttps://github.com/go-gorm/playground/pull/831DescriptionInstanceSet can return a new instance https...
2025-09-19 14:05:03
1585
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...
2025-09-18 14:01:22
3529
上一页
下一页
1
2
3
4
5
6
.