Nineya
Home
Blog
软著申请
Gorm Add support for suppressing logs due to context cancellation
2025-01-15 04:21:22
554
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
2025-01-15 04:21:16
1125
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注入?
2025-01-15 04:21:12
1204
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
2025-01-15 04:21:09
1507
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
2025-01-15 04:21:07
717
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
2025-01-15 04:21:04
3153
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
2025-01-15 04:21:01
2340
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
2025-01-15 04:20:59
3040
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
2025-01-15 04:20:56
15434
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
2025-01-15 04:20:50
693
Describe the featureCurrently, the serializer interface is:type SerializerInterface interface { Scan(ctx context.Cont...
Gorm HasTable函数不正确,
2025-01-15 04:20:47
1536
我在使用gorm框架连接slqite数据库时,用其HasTable函数时,发现不能正确返回,用debug模式时,打印出如下语句:[0.593ms] [rows:-] SELECT count(*) FROM sqlite_master WH...
Gorm The gorm website has an infinite redirect
2025-01-15 04:20:42
4091
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
2025-01-15 04:20:40
1784
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 次
2025-01-15 04:20:37
4080
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
2025-01-15 04:20:34
1852
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
2025-01-15 04:20:32
1303
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
2025-01-15 04:20:24
2564
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
2025-01-15 04:20:19
292
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
2025-01-15 04:20:17
2056
MySQLJoins are not supported while Updating - Join statement is missing return campaign, tx. Debug(). M...
Gorm How to add table alias for db.Model
2025-01-15 04:20:14
1764
Your QuestionI want to add TABLE ALIAS using db.Model but i did not find anything in documentation. So how do i add tabl...
上一页
下一页
1
…
906
907
908
909
910
…
2246
.