Gorm Multiple calls to the Model method update the query table name only on the first call

playgroundhttps://github.com/go-gorm/playground/pull/704problemWhen a Model method is called multiple times, only the fi...

Gorm Polymorphism Many To Many support

Describe the featurePolymorphism Many To Many supportMotivationRelated IssuesComment From: yaameenAny update on this? @...

Gorm Build for sqlite3 on ubuntu 24.04 fail with link libicu18n

GORM Playground LinkI can not run the ./test.sh form goplayground thus no playground availableError isgorm.io/gen/exampl...

Gorm Escaping % and _ in like SQL queries

Describe the featureAllow escaping % and _ in like SQL queries sent to database using ESCAPE clause as described on:http...

Gorm Problem with migrations while defining manually foreignKey and references

Your QuestionI have three tables:type ShipmentProvider struct { ID uint `gorm:"primaryKey"` Name strin...

Gorm The constraint "unique" is not working

Your QuestionI was trying to use the unique constraint in the email field of my model but this is not being migrated to ...

Gorm 如何使用 Updates 方法无法保存字段类型为 map 的数据

Your Question我没有办法保存字段类型为 map 的数据type ConfigUpsertRequest struct { ID uint `json:"id" ...

Gorm SQLite driver's dependency on gcc

The problem was mentioned in https://github.com/go-gorm/gorm/issues/6468, gorm.io/driver/sqlite depends on github.com/ma...

Gorm Reflection issue when trying to Join relationships

GORM Playground Linkhttps://github.com/go-gorm/playground/pull/766DescriptionI have a simple example here that shows whe...

Gorm How to order by an association field?

Hi all! I have already search in the issue tracker but no success here we go:What version of Go are you using (go versio...

Gorm A Bug in Passing Array to Where() Func

A bug in passing array to Where() func, as shown in the following example:var a []string{"str1","str2","str3"}db.Where("...

Gorm Upgrade 1.25.5->1.25.7: AutoMigrate returns the error "insufficient arguments"

GORM Playground Linkhttps://github.com/go-gorm/playground/pull/1DescriptionComment From: github-actions[bot]The issue ha...

Gorm db.Clauses(clause.OnConflict{UpdateAll: true}).Create(users) 导致主键不连续

users := []*User{ {Username: "usertest", Email: "user3@example.com"}, {ID: 1, Username...

Gorm When using OnConflict{UpdateAll: true} for batch insertion, if there is an update, the returned ID is incorrect in MySQL

GORM Playground Linkhttps://github.com/go-gorm/playground/pull/737DescriptionUniqueUser is a model which exists unique c...

Gorm Two unique indices created when using syntax uniqueIndex:custom_index_name, PostgreSQL

Issue:Two indices created when using syntax uniqueIndex:custom_index_nameExpected resultUsing the uniqueIndex with a cus...

Gorm The transaction is rolled back before returning error

Your QuestionI want to delete the existing record in a transaction after error creation. In the document, it is said tha...

Gorm Issue with Preload(...) and Prepared Statements After Schema Migration

DescriptionHi,First, thank you for all the hard work you do on GORM!I’m encountering an issue when using Preload("Blah.B...

Gorm How to solve the deadlock problem caused by upsert in concurrent scenarios

Your QuestionI have a database deadlock problem when I parallel upsert some data, how can I solve it?Examples are as fo...

Gorm MariaDB database batch insert incompatibility issue

MariaDB database is fully compatible with MySQL sql, but there will be problems when doing batch insert Create. It seems...

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...
上一页 下一页
.