Nineya
Home
Blog
软著申请
Gorm MySQL driver ClientFoundRows configuration option doesn't change RowsAffected for Update call
2025-01-15 02:21:07
1709
GORM Playground Linkhttps://github.com/go-gorm/playground/pull/1To be addedDescriptionTo do an update currently, I have ...
Gorm Count does not work with multiple Distinct arguments
2025-01-15 02:21:04
503
GORM Playground Linkhttps://github.com/go-gorm/playground/pull/683DescriptionI'm using postgres as reference and it look...
Gorm IN (?) expression not expanded when using pointer slice
2025-01-15 02:21:02
1424
GORM Playground Linkhttps://github.com/go-gorm/playground/pull/682Descriptionvar id uint = 1DB.Table("users")....
Gorm sqlite driver got error table "xxx" has more than one primary key
2025-01-15 02:21:00
2746
Your QuestionGot error saying table "users" has more than one primary key2023/12/22 22:02:05 [...] table "users&quo...
Gorm 文档中新建一个time类型的自定义字段使用的是field.NewString方法
2025-01-15 02:20:57
627
文档中新建一个time类型的自定义字段使用的是field.NewString方法Comment From: github-actions[bot]The issue has been automatically marked as stal...
Gorm strconv.ParseUint: parsing "{uuid}" | sqlite | gorm | gin
2025-01-15 02:20:53
5230
I want to set a uuid for a Model.ID I am using github.com/google/uuidThis is the codetype Quiz struct { ID str...
Gorm empty dsn should return err or panic
2025-01-15 02:20:50
1340
GORM Playground LinkDescriptionwhy the code below with empty dsn can run with no error? that is counterintuitive.package...
Gorm Update attributes with multiple where clauses, RowsAffected always is zero.
2025-01-15 02:20:47
531
Your QuestionUpdate attributes with multiple where clauses, the result RowsAffected always is zero, is it right? It only...
Gorm gorm.io 官网打不开
2025-01-15 02:20:37
634
Comment From: github-actions[bot]The issue has been automatically marked as stale as it missing playground pull request ...
Gorm Error when Create New Database Record
2025-01-15 02:20:32
1876
GORM Playground Linkhttps://github.com/go-gorm/playground/pull/650Descriptioni got the following error "failed to parse ...
Gorm Batch update functionality using gorm.DB.Save() is not working
2025-01-15 02:20:29
1753
GORM Playground Linkhttps://github.com/go-gorm/playground/pull/1DescriptionThere is an issue with batch update functiona...
Gorm [Belongs-to with overide foreignKey not work]
2025-01-15 02:20:24
1805
Hi team, I would like to raise a bug not supporting in belongs-to with the case using overide-foreigner. Many A belongs ...
Gorm 执行Save操作更新时,CreatedAt会被更新
2025-01-15 02:20:21
3732
Descriptiontype BaseModel struct { CreatedAt time.Time UpdatedAt time.Time}type Package struct { Id int64 ...
Gorm Clauses 唯一键冲突则忽略,没冲突就批量插入,偶发性报错:Error 1869
2025-01-15 02:20:18
734
业务场景就是插入一组数据,如果这组数据中有某一条数据有唯一键冲突就忽略该条,没有就插入,代码如下:Clauses(clause.OnConflict{DoNothing: true}).Create(&info)其中 info 是数...
Gorm 希望生成DAO层代码的过程,可以支持多次生成
2025-01-15 02:20:16
1323
当表比较多时,一次生成所有的DAO层代码,时间会比较长,当我封装一个命令,每次只生成部分DAO层代码时,下次生成会影响上次生成的代码,希望能支持。MotivationRelated IssuesComment From: github-ac...
Gorm 当使用Dao时,utils.FileWithLineNum计算不准确。应该排除掉.gen.go
2025-01-15 02:20:13
1176
加上!strings.HasSuffix(file,".gen.go")条件,才是准确的// FileWithLineNum return the file name and line number of the current filef...
Gorm run with linux-arm,goarm is arm5
2025-01-15 02:20:10
9391
,my app run with windows,its success.when my app run with goarm=arm5,panic is thispanic: runtime error: invalid memory a...
Gorm sql.NullTime时区问题
2025-01-15 02:20:08
2887
这是我的表结构type PharrCompany struct { Id int32 `json:"id" gorm:"primarykey;column:id"` ...
Gorm it will be panic in a transaction when ConnPool is nil?
2025-01-15 02:20:01
2430
DescriptionWhen I used gorm to start a transaction to update the database, Panic occurred. The specific reasons are anal...
Gorm Implementing Table Routing with a New TableName with context
2025-01-15 02:19:59
1071
Now, the interface Tabler defines with TableName() string, can't routing to dynamic table with a dynamic prefix like th...
上一页
下一页
1
…
933
934
935
936
937
…
2246
.