Gorm The default value is - 1, and the inserted value 0 is - 1, Both V1 and V2 have problems. 0 cannot be inserted

GORM Playground Linkhttps://github.com/go-gorm/playground/pull/1DescriptionBoth V1 and V2 have problems. 0 cannot be ins...

Gorm Exists query

Your QuestionIs there an exist query like xorm?exists, err = db.Exist(&RecordExist{ Name: "test1",})Than...

Gorm Getting Data Gorm PostgreSQL

Your QuestionI Have my model as follows:package modelstype Guild struct { Id string `json:"id&quot...

Gorm NULL default values in v2

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

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

Your QuestionHow join pass table name parameter in sql builderExample:Db.Table("prefix_"+"tablenameA&quot...

Gorm How can I select specific filed when I use "Association"?

Your QuestionHow to select specific filed when I use "Association"?For example, I have two models UserModel and GroupMo...

Gorm Strange behaviour deleting associations

Strange behaviour deleting association happened.The query generated an extra condition which i did not add.type Client s...

Gorm many2many 的连接表不支持驼峰表名称,自动进行转换为蛇形

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?

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.

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没有报告错误

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

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

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.

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

GORM Playground Linkhttps://github.com/go-gorm/playground/pull/448DescriptionI have modified my User struct to represent...

Gorm Config NowFunc is invalid ?

Your Questiongorm.io/gorm v1.23.2 // indirectI need to set timezone UTC,so config NowFunc :NowFunc: func() time.Time { ...

Gorm person 变成了people

GORM Playground Linktype Person Struct { gorm.Model Name string }生成的表变成了PeopleComment From: github-actions[bot]The...

Gorm person 变成了people

GORM Playground Linktype Person Struct { gorm.Model Name string }生成的表变成了PeopleComment From: github-actions[bot]The...

Gorm 在代码中怎么判断 Duplicate Entry error ?

在代码中怎么判断 Duplicate Entry error ?Originally posted by @Jimwi in https://github.com/go-gorm/gorm/issues/3821#issuecomment-...
上一页 下一页
.