Gorm 内存泄漏

我有个任务需要一直查询数据库查询数据库后变量经过 find后内存泄漏 导致内存一直增长Comment From: github-actions[bot]The issue has been automatically marked as s...

Gorm Callback().Update() 不生效

db.Callback().Update().Before("gorm:update").Replace("update_user", func(db *gorm.DB) { if db...

Gorm Grouped conditions in scopes results in duplicative where conds

GORM Playground Linkhttps://github.com/go-gorm/playground/pull/754DescriptionI was under the impression that using a gro...

Gorm The plugin BeforeCreate conflicts with the model's BeforeCreate, and the program crashes

gorm.io/driver/mysql v1.5.7gorm.io/gen v0.3.26gorm.io/gorm v1.25.11package datasourceimport ( "fmt" "github.com/bw...

Gorm Automigration NOT NULL to DEFAULT NULL not working

GORM Playground Linkhttps://github.com/go-gorm/playground/pull/512DescriptionIt's not possible to change not nullable fi...

Gorm feat: support nested delete

Describe the featureSupport nested Delete by .Select("A.B").Delete(...) just like .Preload("A.B").Find(...)MotivationAt ...

Gorm Preload / load Polymorphism Association

Your QuestionI have a Polymorphism Association described as follow:type UserTypeA struct { Id uint64 `json:"-&qu...

Gorm Add support for google.protobuf.Timestamp field

Describe the featureIt's a very common usecase to create go structs from proto, and directly use those structs as object...

Gorm 在postgres重复查询会报错显示 prepared statement already exists (SQLSTATE 42P05)

复现代码如下type User struct { ID uint `gorm:"primaryKey"` Username string `gorm:"unique;not ...

Gorm How to create update CASE WHEN

I want to create a update like this CASE WHEN but i do not see any option or anything like that in docseg:Update name ...

Gorm Additional .Query params silently fail if they are used on a raw query

I have been guilty of using mix of raw query with additional query parameters several times so far. Each time I found ou...

Gorm sql server中使用Count函数报语法错误

你好,我的使用方式如下err = e.Orm.Debug().Model(&data). Scopes( cDto.MakeCondition(c.GetNeedSearch()), ...

Gorm where condition bug

Hi developer,I design model as follows:IsFolder bool `gorm:"not null;default:0;comment:是否目录&...

Gorm 我使用mysql数据库的时候,我主键id不想使用自增属性,想使用雪花算法生成主键id,这个在文档里面没看到呢

关于主键id,生成规则Comment From: github-actions[bot]The issue has been automatically marked as stale as it missing playground pu...

Gorm mysql time 类型无法创建

gorm:"type:time" 已经指定了 time 类型但是表迁移之后是 datetime 类型Comment From: github-actions[bot]The issue has been automatically mark...

Gorm Is order by case support ?

mysql supports sort like: ORDER BY case name when 'someone1' then 0 when 'someone2' then 1 else 2 end DESCcan we upgrade...

Gorm AutoMigrate method creates incorrect index name

Description:I encountered an issue with GORM's AutoMigrate function when upgrading to the latest versions.Successful mig...

Gorm 单列索引在不指定索引名时索引名生成规则用的是定义field name,而不是用的 column name

//我的模型是这样的type paramExample3 struct { V身份证号 string `gorm:"column:person_num;primaryKey"` V学校编号 string `g...

Gorm timestamp NULL DEFAULT NULL, 时,使用 auto migration 失败

Describe the bug当我的数据表中timestamp类型字段设置默认值为null时,再次使用auto migration 失败。To ReproduceSteps to reproduce the behavior:1. 数据表...

Gorm Many2Many associations cause AutoMigrate to create joining tables with the wrong data types; then foreign key constraints fail.

GORM Playground LinkI can't add a link because the playground repo hasn't been working since April! See here https://git...
上一页 下一页
.