Nineya
Home
Blog
软著申请
Gorm 内存泄漏
2025-01-15 04:14:56
630
我有个任务需要一直查询数据库查询数据库后变量经过 find后内存泄漏 导致内存一直增长Comment From: github-actions[bot]The issue has been automatically marked as s...
Gorm Callback().Update() 不生效
2025-01-15 04:14:51
864
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
2025-01-15 04:14:48
2008
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
2025-01-15 04:14:45
1774
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
2025-01-15 04:14:42
966
GORM Playground Linkhttps://github.com/go-gorm/playground/pull/512DescriptionIt's not possible to change not nullable fi...
Gorm feat: support nested delete
2025-01-15 04:14:40
789
Describe the featureSupport nested Delete by .Select("A.B").Delete(...) just like .Preload("A.B").Find(...)MotivationAt ...
Gorm Preload / load Polymorphism Association
2025-01-15 04:14:37
3505
Your QuestionI have a Polymorphism Association described as follow:type UserTypeA struct { Id uint64 `json:"-&qu...
Gorm Add support for google.protobuf.Timestamp field
2025-01-15 04:14:34
1240
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)
2025-01-15 04:14:32
1692
复现代码如下type User struct { ID uint `gorm:"primaryKey"` Username string `gorm:"unique;not ...
Gorm How to create update CASE WHEN
2025-01-15 04:14:30
1446
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
2025-01-15 04:14:27
1447
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函数报语法错误
2025-01-15 04:14:24
2697
你好,我的使用方式如下err = e.Orm.Debug().Model(&data). Scopes( cDto.MakeCondition(c.GetNeedSearch()), ...
Gorm where condition bug
2025-01-15 04:14:22
941
Hi developer,I design model as follows:IsFolder bool `gorm:"not null;default:0;comment:是否目录&...
Gorm 我使用mysql数据库的时候,我主键id不想使用自增属性,想使用雪花算法生成主键id,这个在文档里面没看到呢
2025-01-15 04:14:19
598
关于主键id,生成规则Comment From: github-actions[bot]The issue has been automatically marked as stale as it missing playground pu...
Gorm mysql time 类型无法创建
2025-01-15 04:14:16
1811
gorm:"type:time" 已经指定了 time 类型但是表迁移之后是 datetime 类型Comment From: github-actions[bot]The issue has been automatically mark...
Gorm Is order by case support ?
2025-01-15 04:14:14
743
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
2025-01-15 04:14:11
3484
Description:I encountered an issue with GORM's AutoMigrate function when upgrading to the latest versions.Successful mig...
Gorm 单列索引在不指定索引名时索引名生成规则用的是定义field name,而不是用的 column name
2025-01-15 04:14:08
5998
//我的模型是这样的type paramExample3 struct { V身份证号 string `gorm:"column:person_num;primaryKey"` V学校编号 string `g...
Gorm timestamp NULL DEFAULT NULL, 时,使用 auto migration 失败
2025-01-15 04:14:06
2966
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.
2025-01-15 04:14:03
3864
GORM Playground LinkI can't add a link because the playground repo hasn't been working since April! See here https://git...
上一页
下一页
1
…
912
913
914
915
916
…
2246
.