Nineya
Home
Blog
软著申请
Gorm Wrong functionality with parametrization and error handling in Raw
2025-01-15 00:30:51
4037
GORM issue with different processing timeSee code: log.Printf("Test 1") var resultCount int64 e.GormD...
Gorm syntax error at position 74 near ':'
2025-01-15 00:30:49
1047
GORM Playground Linkhttps://github.com/go-gorm/playground/pull/1DescriptionrawSql := "select d.* from image_info as...
Gorm ErrRecordNotFound for Find()/First()/Last() after Create()
2025-01-15 00:30:46
1106
When successfully inserting a struct into the database with result := gorm.DB.Create(&struct), a following result :=...
Gorm PostgreSQL Pipelining Execution
2025-01-15 00:30:43
1776
Support Pipeline Mode for PostgresqlMotivationPipeling mode allows applications to send a query without having to read t...
Gorm This parameter is used to query the gorm v2 group. Table is not the same as sql generated without using it
2025-01-15 00:30:41
1884
GORM Playground Linkhttps://github.com/go-gorm/playground/pull/1Descriptiongorm v2组查询时,使用.Table与不使用生成的sql不一样This paramet...
Gorm The primary key field will be automatically appended
2025-01-15 00:30:38
2226
DescriptionWhen the field is a primary key but not self increasing, using create will automatically append the primary k...
Gorm Weird handling of field.Or in Where expression
2025-01-15 00:30:28
797
https://github.com/go-gorm/gorm/blob/bae684b3639dff3e35d0ed330bc82c12e8282110/clause/where.go#L42This code make sql of e...
Gorm Unexpected behavior, duplicated create records
2025-01-15 00:30:25
1499
I have a very simple table like this:type Prompt struct { gorm.Model Uuid string `json:"uu...
Gorm 关联相关问题
2025-01-15 00:30:22
624
如何使用远程一对多呢,A有多个B,B有多个C期望结果:A能拿到关联的多个CComment From: github-actions[bot]The issue has been automatically marked as stale a...
Gorm The actual behavior of the order method does not match the documentation
2025-01-15 00:30:20
798
In the documentation, the order method accepts a clause.OrderBy type parameter, but in the code it doesn't.https://githu...
Gorm 通过table 不支持智能选择字段吗
2025-01-15 00:30:01
637
目前通过model 可以智能选择字段但是通过table 必须通过select手动设置字段,什么情况Comment From: github-actions[bot]The issue has been automatically mark...
Gorm 密码特殊字符
2025-01-15 00:29:58
627
mysql的密码包含特殊字符:比如以%开头,连接的时候会报错,这个问题怎么解决?Comment From: github-actions[bot]The issue has been automatically marked as stal...
Gorm gorm gen doc bug
2025-01-15 00:29:55
926
https://gorm.io/zh_CN/gen/` // gormdb, _ := gorm.Open(mysql.Open("root:@(127.0.0.1:3306)/demo?charset=utf8mb4&parse...
Gorm The document is well written, it is recommended to add examples of the usage of db. Close() in it
2025-01-15 00:29:53
1028
I noticed that gorm's documentation is very clearly written and easy to understand.Such as: https://gorm.io/zh_CN/docs/c...
Gorm Composite Indexes not work.
2025-01-15 00:29:50
1369
gorm.io/gorm v1.25.4type OrderItem struct { UUID string json:"uuid" gorm:"type:char(32);uniqueInde...
Gorm clause.OnConflict set DoNothing:true not work, cant remove ON DUPLICATE KEY UPDATE
2025-01-15 00:29:47
3397
how remove ON DUPLICATE KEY UPDATE .... ?type OrderItem struct {*gin.Model OrderNo string `json:"...
Gorm How to override gorm many2many fields in query?
2025-01-15 00:29:45
1958
type User struct { ID int `json:"id"` UserID int `json:"user_id"` Languages []Language ...
Gorm how can i remove ON DUPLICATE KEY UPDATE?
2025-01-15 00:29:42
846
try to remove it, but it is not work.db.Session(&gorm.Session{FullSaveAssociations: true}).Clauses(clause.OnConflict...
Gorm 编写插件记录当前删除数据的人不生效
2025-01-15 00:29:39
613
在插件中拿到了上下文的数据,想给字段赋值,但是不生效Comment From: github-actions[bot]The issue has been automatically marked as stale as it missin...
Gorm Data race in (*DB).Find()
2025-01-15 00:29:16
2136
DescriptionWe detected a data race in a binary compiled using the -race flag in go build:WARNING: DATA RACEWrite at 0x00...
上一页
下一页
1
…
940
941
942
943
944
…
2246
.