Gorm AutoMigrate should avoid migration if table structure not changed?

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

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

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

Edit 1: removed package gorm; replaced "supports configuring multiple database types" with "supports configuring differe...

Gorm Wildcard to Omit/Select common fields between associations

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

Your Questionhttps://github.com/go-gorm/playground/pull/628type MyModel struct { Id uint `gorm:"primaryKe...

Gorm Preload与Select冲突?

Your Question刚刚发现只要通过Select()选择特定字段,Preload()就不生效。通过Debug稳定复现。The document you expected this should be explainedhttps://...

Gorm Cascading soft delete using Delete-with-Select doesn't work.

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

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

Your QuestionHow can I clean | delete all scopes?The document you expected this should be explainedI have a particular r...

Gorm Trino support

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

Describe the featureThe GORM docs (https://gorm.io/docs/models.html) describe conventions for using UNIX time stamps at ...

Gorm RecordNotFound() helper

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没有生效

Your Question使用map[string]interface{}创建数据时, BeforeCreate 等Hook没有生效,测试代码如下:package mainimport ( "context" ...

Gorm 为什么golang作为一种静态语言,但是它的类库基本上实现的风格都是动态语言那套,写个字段都要拼接字符串

为什么golang作为一种静态语言,但是它的类库基本上实现的风格都是动态语言那套,写个字段都要拼接字符串难道不应该是这样的吗?怎么都是这种风格这样完全失去了静态语言类型提示的优点Comment From: github-actions[bo...

Gorm 模拟数据库稳定性需求

Hi,Team:目前我们在考虑如何模拟gorm的稳定性问题,用以针对应用的代码逻辑的测试。我们假设了如下的方式:db := gorm.Open(...)db = db.SetErrorFactor(0.3) //30%几率返回固定错误 g...

Gorm How can I log GORM errors to Sentry?

Your QuestionHow can I log GORM errors to Sentry?The code in finisher_api.go explicitly overrides any configured logger....

Gorm 为什么不直接Model方法支持表名alias呢

为什么不直接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

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

GORM Playground Linkhttps://github.com/go-gorm/playground/pull/618Descriptiongoroutine 1209713 [IO wait, 196 minutes]:in...
上一页 下一页
.