Gorm GORM may not respond for a long time after a certain period of time ,GORM隔一段时间后,就会长时间不响应

Your QuestionGORM隔一段时间后,就会长时间不响应GORM may not respond for a long time after a certain period of timeThe document you expe...

Gorm 拼接SQL时 报 expected 5 arguments, got 3

下面是查询语句 ,是不是因为又在后面通过 if 拼接了含有参数的语句?countStr := "SELECT COUNT(*) AS count FROM bill AS BH WHERE (BH.type = 1 OR BH.t...

Gorm Gorm how to set field allowing to be null in model definition?

In model definition, I set a field not allowed to be null before. type Dataset struct { MD5 string ...

Gorm How to do write-through caching with Gorm?

Your QuestionWe're adding Redis as a caching layer to our gorm setup. Is there a suggested way to implement write-throug...

Gorm Chain Method keep previous params

DescriptionAccording to the documentation : I want to test run the same test as explain in the Example 1:db, _ := gorm.O...

Gorm should I close DB when I exit program over v1.20.0???

Your Questionshould I close DB when I exit program over v1.20.0???I w graceful exit !The document you expected this sho...

Gorm Where clauses show up as nil in Scopes

GORM Playground Linkhttps://github.com/go-gorm/playground/pull/592Descriptionsay i have this scopefunc SomeScope(t *test...

Gorm Documentation: Create From Map is incorrect

Your QuestionThe NOTE at the bottom of Create From Map is incorrect. The code provided will attempt to backfill primary ...

Gorm error handling for duplicate fields

Describe the featureAs a user I would like to receive a friendly message when trying to include fields with foreignkey{&...

Gorm Updating nested struct ID on Save

I'm trying to save a new object to my database. For the sake of this example, I will use the following:type TimeStamps s...

Gorm Pluck报Error 1064 (42000): You have an error in your SQL syntax错误

Your Questiontype Print struct { gorm.Model OwnerID uint `gorm:"not null;index"` OwnerType strin...

Gorm Writing/reading binary data using GORM

Your issue may already be reported! Please search on the issue track before creating one.What version of Go are you usin...

Gorm NOT NULL to NULL Field AutoMigrate

Your QuestionShould gorm be able to change a field in the DB from NOT NULL to NULL? Based on the Auto-Migration docs, it...

Gorm polymorphic association in gorm (belongs to)

Describe the featureI would like to request support for belongs to polymorphic association in GORM. Currently, GORM prov...

Gorm Jsonb field of association isn't properly saved if it has default specified

GORM Playground Linkhttps://github.com/go-gorm/playground/pull/620Descriptiontype ValueDep struct { gorm.Model ID ...

Gorm 多个Where条件,生成SQL时的Where顺序问题

Your QuestionThe document you expected this should be explainedExpected answer使用db.where("id = ?", 1).where("name = ?","...

Gorm How can I preload Todos while only selecting username?

Your Questionam trying to preload todos while only selecting username from the user doing this query: type User struct {...

Gorm Prepared_stmt_count increase with snowflake id of sharding

GORM Playground LinkDescriptionPrepared_stmt_count increase with snowwake id of shardingno SetConnMaxIdleTimePrepareStm...

Gorm How to update the connection string for new connection in the conn pool?

Your QuestionHow to update the connection string for new connection in the conn pool?The document you expected this shou...

Gorm v1.24.6使用Save方法会执行update和insert操作

v1.24.6使用Save方法更新记录时,当缺失updated_at字段时,会先进行update操作,再进行insert操作?Comment From: github-actions[bot]The issue has been autom...
上一页 下一页
.