Nineya
Home
Blog
软著申请
Gorm AutoMigrate should avoid migration if table structure not changed?
2025-01-15 00:23:22
2417
Describe the featureAutoMigrate is useful to migrate database but it runs migration every time even if the table structu...
Gorm Support varying auto_increment_increment values
2025-01-15 00:23:19
526
Describe the featureProvide an option to force gorm to set the primary key/auto increment field values based on what was...
Gorm How to use OnConstraint correctly with Gorm
2025-01-15 00:23:17
3106
Your QuestionHow do we use OnConstraint correctly? The SQL statement that gorm generated with OnConstraint has syntax er...
Gorm Add support for overriding model struct tags at runtime
2025-01-15 00:23:14
11474
Edit 1: removed package gorm; replaced "supports configuring multiple database types" with "supports configuring differe...
Gorm Wildcard to Omit/Select common fields between associations
2025-01-15 00:23:07
1794
Describe the featureConsider these models:type BaseModel struct { ID uint `gorm:"primaryKey"` Created...
Gorm How to declare foreign key and references for child if it has the same field as the parent does
2025-01-15 00:23:04
2009
Your Questionhttps://github.com/go-gorm/playground/pull/628type MyModel struct { Id uint `gorm:"primaryKe...
Gorm Preload与Select冲突?
2025-01-15 00:23:01
306
Your Question刚刚发现只要通过Select()选择特定字段,Preload()就不生效。通过Debug稳定复现。The document you expected this should be explainedhttps://...
Gorm Cascading soft delete using Delete-with-Select doesn't work.
2025-01-15 00:22:59
2602
Is there anyone can help me. I tried Delete-with-Select but it doesn't worked for me.My gorm version as below:gorm.io/dr...
Gorm Support special charactors in column name
2025-01-15 00:22:56
1061
Hi Team,Need special character support in column name conversion, Like there would be new flag SkipConversionRule. Which...
Gorm How can I clean or delete existe scope
2025-01-15 00:22:53
965
Your QuestionHow can I clean | delete all scopes?The document you expected this should be explainedI have a particular r...
Gorm Trino support
2025-01-15 00:22:51
700
Describe the featureIt would be nice if GORM supports TrinoMotivationTrino is an MPP (Massive Parallel Processing) datab...
Gorm Add support for autoDeleteTime to DeletedAt field
2025-01-15 00:22:48
1294
Describe the featureThe GORM docs (https://gorm.io/docs/models.html) describe conventions for using UNIX time stamps at ...
Gorm RecordNotFound() helper
2025-01-15 00:22:22
1688
Describe the featureHi everyone, Since using the v2 of gorm, I miss a bit the helper RecordNotFound() that we used to ha...
Gorm 使用map[string]interface{}创建数据时, BeforeCreate 等Hook没有生效
2025-01-15 00:22:19
1532
Your Question使用map[string]interface{}创建数据时, BeforeCreate 等Hook没有生效,测试代码如下:package mainimport ( "context" ...
Gorm 为什么golang作为一种静态语言,但是它的类库基本上实现的风格都是动态语言那套,写个字段都要拼接字符串
2025-01-15 00:22:17
717
为什么golang作为一种静态语言,但是它的类库基本上实现的风格都是动态语言那套,写个字段都要拼接字符串难道不应该是这样的吗?怎么都是这种风格这样完全失去了静态语言类型提示的优点Comment From: github-actions[bo...
Gorm 模拟数据库稳定性需求
2025-01-15 00:21:56
834
Hi,Team:目前我们在考虑如何模拟gorm的稳定性问题,用以针对应用的代码逻辑的测试。我们假设了如下的方式:db := gorm.Open(...)db = db.SetErrorFactor(0.3) //30%几率返回固定错误 g...
Gorm How can I log GORM errors to Sentry?
2025-01-15 00:21:53
655
Your QuestionHow can I log GORM errors to Sentry?The code in finisher_api.go explicitly overrides any configured logger....
Gorm 为什么不直接Model方法支持表名alias呢
2025-01-15 00:21:50
758
为什么不直接Model方法支持表名alias呢,用Table方法要用字符串,当改表名的时候找到这些字符串修改好麻烦,用Model有编辑器提示修改起多方便Comment From: github-actions[bot]The issue h...
Gorm pq: got 1 parameters but the statement requires 0 after upgrade from v1.23.4 to v1.23.5
2025-01-15 00:21:46
6801
I started getting a migrator error after upgrading the gorm.io/gorm v1.23.4 to gorm.io/gorm v1.23.5Note: The issue happe...
Gorm I/O blocking
2025-01-14 17:02:26
5382
GORM Playground Linkhttps://github.com/go-gorm/playground/pull/618Descriptiongoroutine 1209713 [IO wait, 196 minutes]:in...
上一页
下一页
1
…
945
946
947
948
949
…
2246
.