Nineya
Home
Blog
软著申请
Gorm code readability , small improvement for limit clause code
2025-01-15 04:20:11
1662
I would like to suggest the following small change in clause/limit.go file regarding code readability the type Limit i...
Gorm gorm preload not supported count()
2025-01-15 04:20:09
794
Your QuestionFor some special reasons, I need to query count() on the query with preload. What should I do?My idea is to...
Gorm int 类型主键全部判断位自增,是何逻辑?
2025-01-15 04:20:06
2058
GORM Playground Linkhttps://github.com/go-gorm/playground/pull/1DescriptionComment From: github-actions[bot]The issue ha...
Gorm 操作达梦数据库插入数据报错不存在IDENTITY列
2025-01-15 04:20:01
472
Your Question操作达梦数据库插入数据报错不存在IDENTITY列,但是这个表中并没有自增字段。而且为什么他会自动执行 :SET IDENTITY_INSERT "device_group" ON;Error -2717: 第1 ...
Gorm Support cloudflare D1 database
2025-01-15 04:19:58
500
Describe the featureCloudflare D1 is GA now, could support it ?MotivationCloudflare D1 is Sqlite based, and have api to ...
Gorm Panic saving a struct with nil value field and json serializer
2025-01-15 04:19:56
3429
GORM Playground Linkhttps://github.com/go-gorm/playground/pull/770DescriptionWhen i save a struct with a json serializer...
Gorm Save issue
2025-01-15 04:19:53
3125
DescriptionUnexpected behavior from SaveCode: case 1result := Db.Save(&services[i])if result.Error != nil { fmt.P...
Gorm Add whereStrategy just like what mybatis-plus do
2025-01-15 04:19:50
1195
Describe the featureMany of the gorm users facing filtering with zero value problem, includes me when I am a new user to...
Gorm Why does the sql log output order not is execute order
2025-01-15 04:19:48
2359
Your Questionpackage modelstype Employee struct { ID int64 `gorm:"primaryKey"` Name ...
Gorm Error when updating array
2025-01-15 04:19:44
1896
GORM Playground LinkPlayground is having issue: https://github.com/go-gorm/playground/issues/751Descriptiontype Person s...
Gorm Error Not Found but not return error in gorm postgresql
2025-01-15 04:19:41
2806
Your QuestionIs my code wrong ? Because I try to get some value in DB PostgreSQL but doesn't return errNotFound my err v...
Gorm GORM GaussDB Driver
2025-01-15 04:19:39
415
Describe the feature我实现了GORM适配GaussDB数据库的驱动,欢迎大家使用。gorm4gaussdbMotivation华为云数据库 GaussDB 是华为自主创新研发的分布式关系型数据库。该产品具备企业级复杂事务...
Gorm gorm.DB.Clauses(clause.OnConflict{UpdateAll: true}) do not wok when using CreateInBatches
2025-01-15 04:19:36
1482
1、问题:gorm.DB.Clauses(clause.OnConflict{UpdateAll: true})在执行CreateInBatches时不生效,反复出现同样的报错信息,并且更新失败,表存在唯一索引idx_ns_domain_p...
Gorm 多对多创建的时候如何取消掉被关联表的ON DUPLICATE KEY UPDATE ?
2025-01-15 04:19:33
660
Your Questiontype ( Languages struct { ID uint `json:"id"` Name string `json:"name&q...
Gorm When i only modify the column type to allow null, AutoMigrate does not work.
2025-01-15 04:19:31
7005
Your Questionaccording to the document. i should be able to use AutoMigrate to modify the column type to allow null on M...
Gorm Can I customize gorm tag name?
2025-01-15 04:19:28
1410
Your QuestionCan I customize gorm tag name?for exampleoriginaltype User struct { gorm.Model Name string Age ...
Gorm Delete() 在删除关联的Associate 时候的sql 执行顺序是不固定的?
2025-01-15 04:19:25
365
Your Question多个嵌入的结构中,如果通过 clause.Associations 删除该model下全部的关联关系(包含一个 hasmany 和 一个many2many ) db.Select(clause.Associatio...
Gorm Support duckdb
2025-01-15 04:19:23
744
Support duckdbSupport duckdbComment From: github-actions[bot]The issue has been automatically marked as stale as it miss...
Gorm string turns to base64 automatically when using Model()
2025-01-15 04:19:20
855
When querying data using Model(xx).xxxx.Find([]map[string]interface{}), string value inside the slice result will always...
Gorm How to define []string in Gorm Model
2025-01-15 04:19:17
5812
I have been trying to define a []string in a Gorm Model looking like thistype Shoppinglist struct { Model Title ...
上一页
下一页
1
…
907
908
909
910
911
…
2246
.