Gorm How many fields the user passed in and how many fields i query from database

Your QuestionI've read the document and watched such video, there still a question that I wanna to figure out;There's st...

Gorm 请问gorm支持分库分表吗?

Your QuestionThe document you expected this should be explainedExpected answerComment From: kacha886打算分50张表,按某个id取模,然后存到...

Gorm Unscoped not working with PreLoad on Joins

Your QuestionBefore I report a bug I wanted to check if my expectation is correct.I have a reproducer here that sets up ...

Gorm AutoMigrate fails if custom index is already added to the table (Duplicate column error)

GORM Playground Linkhttps://github.com/go-gorm/playground/pull/469DescriptionAutoMigrate fails if custom index is alread...

Gorm 多对多, 如何在中间关系表中加条件查询?

Your Question我有一个团队表,一个成员表, 一个团队成员关系表.关系表中有个字段status用来确定成员是否还在.(我不知道这个字段是否可以用?)现在我要查询某现有团队现有人员, 怎么查询?我要查询团队拥有过的所有成员怎么查询?...

Gorm mysql 指定 not null,迁移代码会出现两次

GORM Playground Linkhttps://github.com/go-gorm/playground/pull/566Description对整数类型使用 not null 标签,会导致迁移代码时出现两次 NOT NULL例如...

Gorm if model is not ptr when update record, be panic

GORM Playground Linkhttps://github.com/go-gorm/playground/pull/557Descriptionif model is not ptr when update record and ...

Gorm Race when concurrently appending m2m association when preloaded model

GORM Playground Linkhttps://github.com/go-gorm/playground/pull/534DescriptionI tried appending to a m2m association insi...

Gorm 在 Joins 里使用条件会改变 Join 类型

GORM Playground Linkhttps://github.com/go-gorm/playground/pull/563Description例如: 我链接里的例子 sql := DB.ToSQL(func(tx *gor...

Gorm Chained Clauses() does not apply grouping parentheses correctly

GORM Playground Linkhttps://github.com/go-gorm/playground/pull/565DescriptionIf you chain two clauses together, the libr...

Gorm How much data a Scan() call can return

Your QuestionWanted to check how much data a single Scan() call could return.Assuming there are 0.1 million matching row...

Gorm Wrong Query when using uniqueIndex in foreignKey column

GORM Playground Linkhttps://go.dev/play/p/_ejp1Mmag0kDescriptionI had an issue when adding uniqueIndex into foreign key ...

Gorm Cross table fetch duplicates results

Your QuestionHello, I have some domain objects with cross-table relationships.I have a 1-to-many relationship between tw...

Gorm Using virtual fields on SELECT

Your QuestionI have products table which has one-to-many relationship with items and brands tables. brands also have one...

Gorm Create In Batches within transaction fails while using prepared statements

GORM Playground Linkhttps://github.com/go-gorm/playground/pull/560DescriptionWe would like to be able to execute a singl...

Gorm Question: Correct column type usage in migrations

Your QuestionHi, i'd like to open a pull request to improve the migration process, focusing on the AlterColumn method an...

Gorm Is there any way to give a custom name to column in the many2many join table without creating a custom join table?

Your QuestionIs there any way to give a custom name to a column in the many2many join table without creating a custom jo...

Gorm Hooks中的多个写入操作是否需要开启事务?

Your QuestionHooks中的多个写入操作是否需要开启事务?The document you expected this should be explainedtype User struct { ID uin...

Gorm query Postgres timestamp type, but automatically parse returned data to local timezone

Your QuestionI got a Postgres database whose timezone is set to CST.And there are some data in DB like this:Column Type:...

Gorm "使用 Group 条件可以更轻松的编写复杂 SQL"得不到正确的sql代码;

Your Question"使用 Group 条件可以更轻松的编写复杂 SQL"得不到正确的sql代码;我参考的文档是:https://gorm.io/zh_CN/docs/advanced_query.html#%E5%AD%90%E6%...
上一页 下一页
.