Gorm Add querying system

Describe the featureIt would be nice to have a query builder to easily build queries just like it's done in bunMotivatio...

Gorm dial tcp :0: connect: connection refused

DNS: xx:xxx@tcp(localhost:3305)/play?charset=utf8mb4&parseTime=true&loc=Localthe username and password are all c...

Gorm Transaction function returns error is {}, what is the reason?

GORM Playground Linkerr:=db.Transaction(func(tx *gorm.DB) error {retrun nil})err is {} what is the reasonComment From: g...

Gorm Api实现脏读语法,比如sqlserver:select * from table with(nolock)

Describe the featureApi实现脏读语法,比如sqlserver:select * from table with(nolock)MotivationRelated IssuesComment From: li-jin-g...

Gorm how to set "user defined variables" per connections

tidb has user defined variables tidb_batch_insert, how to set variable per connection?right now i exec db.Exec("set ...

Gorm 在测试用例使用事务时,出现deadlock

Your Question在写一些测试用例的时候,为了方便跑完测试后删除测试数据,会使用事务,测试完成后再rollback。导致出现Error: Deadlock found when trying to get lock; try res...

Gorm 中文表头错误乱码

https://blog.csdn.net/qq_39611230/article/details/121436439?app_version=5.6.0&csdn_share_tail=%7B%22type%22%3A%22blo...

Gorm 使用presto数据库时Limit和Offset的顺序

Describe the feature使用presto作为gorm的dialector,执行同时带有limit和offset的语句报错。实际验证后发现是presto服务端要求offset必须出现在limit子句之前。希望最终生成的SQL语...

Gorm DeletedAt字段设置默认值后不能查询

对soft delete字段设置默认值后,新增数据在使用该默认值后,导致无法查询DeletedTime soft_delete.DeletedAt gorm:"default:2006-01-02 15:04:05;column:del...

Gorm Eager Loading on Many2Many does not preserve ordering

type User struct { gorm.Model Languages []Language `gorm:"many2many:user_languages;"`}type Language struct {...

Gorm why Updates method will create new empty record?

DescriptionThe following is detail SQLs, we can see Updates will create an empty record if object_stores record has alre...

Gorm Migrate from varchar to text not work

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

Gorm Find To Map do not support .First on .Table

gorm tag 1.23.6when i use like this:record:=map[string]interface{}{}db.Table("xxx").First(&record,"id=?",1), it retu...

Gorm Find To Map do not support .First on .Table

gorm tag 1.23.6when i use like this:record:=map[string]interface{}{}db.Table("xxx").First(&record,"id=?",1), it retu...

Gorm How gorm handle the dns cache for database?

we are connecting with our database with the domain name. So when the db do the upgrade and it mighe to change the IP . ...

Gorm AutoMigrate runs CREATE TABLE multiple times

GORM Playground Linkhttps://github.com/go-gorm/playground/pull/487DescriptionWhen there's no existing table, everything ...

Gorm func DB#Create can not response the result using Association

Your Questionmy struct is this:type A struct { Id int Name string BId int B B}type B struct { Id int N...

Gorm sharding 支持mysql么

Comment From: github-actions[bot]The issue has been automatically marked as stale as it missing playground pull request ...

Gorm gorm 支持 mysql sharding么

Comment From: github-actions[bot]The issue has been automatically marked as stale as it missing playground pull request ...

Gorm AutoMigrate: Syntax error at or near "NOT" (SQLSTATE 42601)

GORM Playground Linkhttps://github.com/go-gorm/playground/pull/489DescriptionSince v1.23.7 of gorm.io/gorm AutoMigrate m...
上一页 下一页
.