Gorm code readability , small improvement for limit clause code

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()

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 类型主键全部判断位自增,是何逻辑?

GORM Playground Linkhttps://github.com/go-gorm/playground/pull/1DescriptionComment From: github-actions[bot]The issue ha...

Gorm 操作达梦数据库插入数据报错不存在IDENTITY列

Your Question操作达梦数据库插入数据报错不存在IDENTITY列,但是这个表中并没有自增字段。而且为什么他会自动执行 :SET IDENTITY_INSERT "device_group" ON;Error -2717: 第1 ...

Gorm Support cloudflare D1 database

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

GORM Playground Linkhttps://github.com/go-gorm/playground/pull/770DescriptionWhen i save a struct with a json serializer...

Gorm Save issue

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

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

Your Questionpackage modelstype Employee struct { ID int64 `gorm:"primaryKey"` Name ...

Gorm Error when updating array

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

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

Describe the feature我实现了GORM适配GaussDB数据库的驱动,欢迎大家使用。gorm4gaussdbMotivation华为云数据库 GaussDB 是华为自主创新研发的分布式关系型数据库。该产品具备企业级复杂事务...

Gorm gorm.DB.Clauses(clause.OnConflict{UpdateAll: true}) do not wok when using CreateInBatches

1、问题:gorm.DB.Clauses(clause.OnConflict{UpdateAll: true})在执行CreateInBatches时不生效,反复出现同样的报错信息,并且更新失败,表存在唯一索引idx_ns_domain_p...

Gorm 多对多创建的时候如何取消掉被关联表的ON DUPLICATE KEY UPDATE ?

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.

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?

Your QuestionCan I customize gorm tag name?for exampleoriginaltype User struct { gorm.Model Name string Age ...

Gorm Delete() 在删除关联的Associate 时候的sql 执行顺序是不固定的?

Your Question多个嵌入的结构中,如果通过 clause.Associations 删除该model下全部的关联关系(包含一个 hasmany 和 一个many2many ) db.Select(clause.Associatio...

Gorm Support duckdb

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()

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

I have been trying to define a []string in a Gorm Model looking like thistype Shoppinglist struct { Model Title ...
上一页 下一页
.