Gorm Add support for suppressing logs due to context cancellation

Describe the featureLogs due to context cancellation are currently logged at error level.As a consequence of this, our l...

Gorm add partition Error 1564 (HY000): This partition function is not allowed

Your QuestionThe document you expected this should be explainedExpected answerComment From: wangsiqi2015version:gorm.io/...

Gorm DB.Model(&AAA{}).Order("if(user()='root@xxx.xxx.xxx.xxx', column_name, 1) desc").Offset(offset).Limit(pageSize).Scan(&list).Error,这种情况算不算sql注入?

Your QuestionThe document you expected this should be explainedExpected answerComment From: victor-zzh有打印实际执行的sql吗。如果到了数...

Gorm Associating to a model with a not null field shouldn't require those fields during association

Describe the featureI think the title already describes what I want. MotivationI was working on some overhaul of my mode...

Gorm How to write group by for multiple fields

Your QuestionThe document you expected this should be explainedlike this?db.Group("age,score")Expected answerComment Fro...

Gorm Using clause.Not and clause.And result in erroneous simplification

GORM Playground Linkhttps://github.com/go-gorm/playground/pull/767DescriptionWhen using clause.Not and clause.And to cre...

Gorm Change of behaviour from 1.24 to 1.25 with Zero value of uuid.UUID

Your QuestionAfter bumping up the version of Gorm from 1.24 to 1.25, I noticed a breaking change in behaviour, when usin...

Gorm Insert NULL values issue with generated sql

The generated sql seems to be not correct (eg '\<nil>') But in mysql surprisingly it still works. My Modeltype Tab...

Gorm How to properly apply updates to associations

Your QuestionSome code to handle updates that worked in GORM 1 has stopped working since the update, and I'm not sure wh...

Gorm Allowing get dialect in serialzier

Describe the featureCurrently, the serializer interface is:type SerializerInterface interface { Scan(ctx context.Cont...

Gorm HasTable函数不正确,

我在使用gorm框架连接slqite数据库时,用其HasTable函数时,发现不能正确返回,用debug模式时,打印出如下语句:[0.593ms] [rows:-] SELECT count(*) FROM sqlite_master WH...

Gorm The gorm website has an infinite redirect

GORM Playground LinkN/ADescriptionThe docs site is down. Here is a sample curl request that redirects to itself:% curl -...

Gorm Preloading fails due to case insensitivity when foreignKey is a string

Describe the featureAllow callers to specify how to generate utils.ToStringKey if foreignKey is a string.MotivationMySQL...

Gorm the method Value() (driver.Value, error) will be call 3 times,自定义类型的 Value() (driver.Value, error),会被调用 3 次

GORM Playground Link~~如果是必要的话,我会提供的...~~~~If necessary, I will try to do it...~~https://github.com/go-gorm/playground/pu...

Gorm sql: converting argument $1 type: unsupported type map[string]interface {}, a map

A sql like "select 'http://127.0.0.1?name=aaa' as url, name from test t where name = @name" which has "?" will lead to ...

Gorm [BUG] Gorm keeps garbage associations in the database

Let's say we havetype Config struct { gorm.Model Params []Param}type Param struct { gorm.Model ConfigID uint...

Gorm AutoMigrate to add primary key is not working

GORM Playground Linkhttps://github.com/go-gorm/playground/pull/709DescriptionDBTiDB(MySQL compatible)AutoMigrate to add ...

Gorm cgo: cannot parse $WORK\b167\_cgo_.o as ELF, Mach-O, PE or XCOFF

Start project error cgo: cannot parse $WORK\b167_cgo_.o as ELF, Mach-O, PE or XCOFFUsed on win10, configured with CGO_EN...

Gorm Update Joins support

MySQLJoins are not supported while Updating - Join statement is missing return campaign, tx. Debug(). M...

Gorm How to add table alias for db.Model

Your QuestionI want to add TABLE ALIAS using db.Model but i did not find anything in documentation. So how do i add tabl...
上一页 下一页
.