Gorm How to update the middle table field sort ?

Your Questiontype User struct { Id int gorm:"primaryKey;autoIncrement;" json:"Id" Name string ...

Gorm Update intermediate table custom fields

How to update the middle table field sort?type User struct { Id int gorm:"primaryKey;autoIncrement;" json:...

Gorm stmtcache errors when using PgBouncer connection pool

Your QuestionIm hosting my app on Digital Ocean and want to use their Postgres connection pool feature [1] based on PgBo...

Gorm Broken Pipe issues seen with Postgres connection in Golang

Your QuestionHi, I am trying to create a *gorm.DB connection using jinzhu/gorm repo. Here is how i am creating the conne...

Gorm Where with struct after Joins uses wrong table

GORM Playground Linkhttps://github.com/go-gorm/playground/pull/454DescriptionInstead of users.age, pets.age is used beca...

Gorm If Create(10000),will panic ,than sql.(*Tx).awaitDone,Connection pool is not released

GORM Playground Linkhttps://github.com/go-gorm/playground/pull/1Descriptionversion:gorm@v1.24.1code: db.Table("user").Cr...

Gorm How to omit a column on a joined struct?

Your QuestionHow do I omit a column from a joined struct? I have the following:type Client struct { Realm *Realm ...

Gorm Documentation Request: Document reason for removing .Close(), Proper cleanup instructions

Describe the featureThe addition of documentation related to cleanup of GORMThe proper method of closing a connection (o...

Gorm Print DB Connection that resolver resolves to

Is it possible to print the DB connection that the resolver is using under the hood.Reproduction steps:I'm doing a INSER...

Gorm 关于中间表添加的数据的问题

关于中间表添加数据的问题很多时候中间表所关联的数据是已经存在的,但是我在使用 相关API的时候 添加 Create 数据的时候 只想添加中间表的数据(会生成对应 关联表的 INSERT INTO 语句),我只想添加中间表数据,要如何操作? ...

Gorm 1.24.1把gormSourceDir匹配改掉了造成打印sql文件匹配不对

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

Gorm gorm/gen默认生成的结构体gorm tag增加comment

GORM Playground Linkhttps://github.com/go-gorm/playground/pull/1Description默认生成的结构体,注释在字段的后面,以//字段名,这样的话,我们使用autoMigrate...

Gorm SET Variables for the Session

Your QuestionI am trying to determine how best to set a variable for AWS Aurora (MySQL) when configuring GORM that would...

Gorm How to set FK field back to null

Your QuestionI have a Class Model like so : type Class struct { gorm.Model Name string `gorm:"type:tex...

Gorm Create special index for postgresql's jsonb via grom.

For index on postgresql's jsonb column, it there anyway to create below indices, via golang struct's tag:CREATE INDEX ON...

Gorm connection 方法在阿里云 PolarDB 中无效

代码如下 dsn := "xxx:xxxx@tcp(xxxx)/xxx?charset=utf8mb4&parseTime=True&loc=Local" db, err := gorm.Op...

Gorm Password renewal implementation

Your QuestionHow to approach password renewal, IAM authentication?The current approach for Postres:Alter the dialector's...

Gorm Custom Polymorphic Fields

Your QuestionIs there a way to change the polymorphic fields type and id naming convetion?Currently in the docs the only...

Gorm How to ensure user defined variables are not overwritten by other threads

Your QuestionSimilar to this: https://github.com/go-gorm/gorm/issues/5406but I am not sure I want to use heavyweight con...

Gorm Add a new reminder to the document

Describe the featureAdd a new reminder to the document.Help novices avoid time zone problems.MotivationWhen we NewSchged...
上一页 下一页
.