Gorm I have a problem with the 1.25.7 vesion.

Hello. We use the AutoMigrate() function in our project. But we have a problem with the error: "insufficient arguments"....

Gorm it alter column every times when i use datetime default value (now()) for AutoMigrate func

Your QuestionThe document you expected this should be explainedit alter column every times when i use datetime default v...

Gorm Sql Server connection

Your QuestionWe're trying to connect our application to sql server and we want also to be compatible with mysql and post...

Gorm skip updating created_at column while using gorm Update with associations

BackgroundWe are using gorm association as we have nested hierarchy. We are using Create() for creation of records acros...

Gorm 使用gorm生成的sql能查询到数据,但是返回的结构体里面没有数据

查询代码 // 关键字查询,服务器IP/名称/实例ID if receiver.Keywords != "" { hostDb = hostDb.Where("server_name ...

Gorm Updating associations, does not omit default (zero) values

Your QuestionWhen updating with association using gorm.Session{FullSaveAssociations: true}) and .Updates() method it upd...

Gorm [BUG] strings.(*Builder).WriteByte memory leak in .FirstOrCreate with PrepareStmts: true setting

GORM Playground LinkGot no time for it, but I'll think about trying it if I have some free time.DescriptionHello there, ...

Gorm How do I get Preload with Select to work?

Your QuestionMy two types are below. I would like to return the user plus its known last latitude and longitude and noth...

Gorm Document how to use Gorm with Cloud SQL Go Connector

Currently the Gorm docs showcase how to connect to Cloud SQL using the v1 Cloud SQL Proxy. Meanwhile, there is a newer C...

Gorm Using a slice of structs in a WHERE clause

Your QuestionI'm unsure if this is a bug/feature request/I'm just using it wrong, so starting with a question. This use ...

Gorm Can control the field order when creating a table

Describe the featureStruct nesting, resulting in disordered order of fields。It is hoped that the order of fields can be ...

Gorm Particular query crashes MySQL connection when talking to 5.7

Hi, I just wanted to cross-post this just in case:I noticed if I run this query (designed to reproduce this issue) again...

Gorm Association replace panics

GORM Playground Linkhttps://github.com/go-gorm/playground/pull/734DescriptionWhile replacing associations using non-addr...

Gorm How to add unique constraint on combined multiple columns in gorm.

Your QuestionHow to add unique constraint on combined multiple columns in gorm.Structure Look like thistype DumyProject ...

Gorm HasMany自引用相关问题 ?

Your Question我的Author有多个Movie,Movie是自引用 Movie记录Author的ID和父Movie的ID,在我尝试插入到数据库的时候遇到了这个问题错误!!Error 1452: Cannot add or upd...

Gorm [signal SIGSEGV: segmentation violation code=0x80 addr=0x0 pc=0x7e2fda

DescriptionCode here is : tx := repo.db(ctx) if param.GroupID != 0 { tx = tx.Where(" group_id = ?&quot...

Gorm 自引用的结构体怎么存

type TreeNode struct {ID uint `gorm:"primaryKey"`TreeID uintLabel stringParentID *uintChildren []TreeNode `go...

Gorm Wrong table creation order causes migration failure (but not in SQLite)

GORM Playground Linkhttps://github.com/go-gorm/playground/pull/721DescriptionMigration succeed on SQLITE, but fails on o...

Gorm many2many join table creation fails when forgeignKey has check constraint

GORM Playground Linkhttps://github.com/go-gorm/playground/pull/731DescriptionWhen adding a many2many relationship betwee...

Gorm Updates支持struct列表批量更新

Describe the feature当前Updates只支持struct和map参数,使用起来对于批量更新场景不方便。Updates接口支持struct列表更新,代码编写更为方便。MotivationRelated IssuesComm...
上一页 下一页
.