Nineya
Home
Blog
软著申请
Gorm The default value is - 1, and the inserted value 0 is - 1, Both V1 and V2 have problems. 0 cannot be inserted
2025-01-14 08:04:05
4024
GORM Playground Linkhttps://github.com/go-gorm/playground/pull/1DescriptionBoth V1 and V2 have problems. 0 cannot be ins...
Gorm Exists query
2025-01-14 08:04:03
1067
Your QuestionIs there an exist query like xorm?exists, err = db.Exist(&RecordExist{ Name: "test1",})Than...
Gorm Getting Data Gorm PostgreSQL
2025-01-14 08:04:00
1453
Your QuestionI Have my model as follows:package modelstype Guild struct { Id string `json:"id"...
Gorm NULL default values in v2
2025-01-14 08:03:56
2302
I'm trying to migrate to v2 and I'm having problems with a string field that should default to NULL if it is empty. In v...
Gorm How to clear conditions, that were added by method chaining to a DB Handle, from that DB Handle
2025-01-14 08:03:53
1789
Your QuestionHello, we are using Method Chaining, and while it is powerful, we want to avoid problems when developers fo...
Gorm How join pass table name parameter in sql builder
2025-01-14 08:03:51
816
Your QuestionHow join pass table name parameter in sql builderExample:Db.Table("prefix_"+"tablenameA"...
Gorm How can I select specific filed when I use "Association"?
2025-01-14 08:03:48
2087
Your QuestionHow to select specific filed when I use "Association"?For example, I have two models UserModel and GroupMo...
Gorm Strange behaviour deleting associations
2025-01-14 08:03:46
3810
Strange behaviour deleting association happened.The query generated an extra condition which i did not add.type Client s...
Gorm many2many 的连接表不支持驼峰表名称,自动进行转换为蛇形
2025-01-14 08:03:43
795
Comment From: github-actions[bot]The issue has been automatically marked as stale as it missing playground pull request ...
Gorm How does grom get the total number of records while using the limit query?
2025-01-14 08:03:32
1072
Your issue may already be reported! Please search on the issue track before creating one.What version of Go are you usin...
Gorm There should be an alternative method compatible with the selected update zero value of struct.
2025-01-14 08:03:29
1647
Describe the featureNOTE When update with struct, GORM will only update non-zero fields, you might want to use map to up...
Gorm 表字段的数据类型定义错误,updates生成SQL不正确,gorm没有报告错误
2025-01-14 08:03:26
1422
type Player struct { Id int64 gorm:"column:Id" Sex bool gorm:"column:Sex" CreateAt time.Time ...
Gorm v1.23.3 ,there is bug that: [error] failed to parse default value CURRENT_TIMESTAMP for field xxxxx
2025-01-14 08:03:22
1693
when db.Create() , [error] failed to parse default value CURRENT_TIMESTAMP for field xxxxxComment From: github-actions...
Gorm 'SELECT SUM(column)' is off for Decimals
2025-01-14 08:03:17
1468
GORM Playground Linkhttps://github.com/go-gorm/playground/pull/444DescriptionRuning a SELECT SUM(column) query over a ta...
Gorm fields with zero values in the database aren't being scanned into search models.
2025-01-14 08:03:15
830
GORM Playground Linkhttps://github.com/go-gorm/playground/pull/449DescriptionIt appears that gorm isn't "scanning" zero ...
Gorm Error while Saving an instance on sqlite3 DB
2025-01-14 08:03:12
2279
GORM Playground Linkhttps://github.com/go-gorm/playground/pull/448DescriptionI have modified my User struct to represent...
Gorm Config NowFunc is invalid ?
2025-01-14 08:03:08
657
Your Questiongorm.io/gorm v1.23.2 // indirectI need to set timezone UTC,so config NowFunc :NowFunc: func() time.Time { ...
Gorm person 变成了people
2025-01-14 08:03:05
735
GORM Playground Linktype Person Struct { gorm.Model Name string }生成的表变成了PeopleComment From: github-actions[bot]The...
Gorm person 变成了people
2025-01-14 08:03:02
671
GORM Playground Linktype Person Struct { gorm.Model Name string }生成的表变成了PeopleComment From: github-actions[bot]The...
Gorm 在代码中怎么判断 Duplicate Entry error ?
2025-01-14 08:03:00
3917
在代码中怎么判断 Duplicate Entry error ?Originally posted by @Jimwi in https://github.com/go-gorm/gorm/issues/3821#issuecomment-...
上一页
下一页
1
…
993
994
995
996
997
…
2246
.