Gorm MySQL driver ClientFoundRows configuration option doesn't change RowsAffected for Update call

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

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

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

Your QuestionGot error saying table "users" has more than one primary key2023/12/22 22:02:05 [...] table "users&quo...

Gorm 文档中新建一个time类型的自定义字段使用的是field.NewString方法

文档中新建一个time类型的自定义字段使用的是field.NewString方法Comment From: github-actions[bot]The issue has been automatically marked as stal...

Gorm strconv.ParseUint: parsing "{uuid}" | sqlite | gorm | gin

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

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.

Your QuestionUpdate attributes with multiple where clauses, the result RowsAffected always is zero, is it right? It only...

Gorm gorm.io 官网打不开

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

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

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]

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会被更新

Descriptiontype BaseModel struct { CreatedAt time.Time UpdatedAt time.Time}type Package struct { Id int64 ...

Gorm Clauses 唯一键冲突则忽略,没冲突就批量插入,偶发性报错:Error 1869

业务场景就是插入一组数据,如果这组数据中有某一条数据有唯一键冲突就忽略该条,没有就插入,代码如下:Clauses(clause.OnConflict{DoNothing: true}).Create(&info)其中 info 是数...

Gorm 希望生成DAO层代码的过程,可以支持多次生成

当表比较多时,一次生成所有的DAO层代码,时间会比较长,当我封装一个命令,每次只生成部分DAO层代码时,下次生成会影响上次生成的代码,希望能支持。MotivationRelated IssuesComment From: github-ac...

Gorm 当使用Dao时,utils.FileWithLineNum计算不准确。应该排除掉.gen.go

加上!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

,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时区问题

这是我的表结构type PharrCompany struct { Id int32 `json:"id" gorm:"primarykey;column:id"` ...

Gorm it will be panic in a transaction when ConnPool is nil?

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

Now, the interface Tabler defines with TableName() string, can't routing to dynamic table with a dynamic prefix like th...
上一页 下一页
.