Nineya
Home
Blog
软著申请
Gorm How many fields the user passed in and how many fields i query from database
2025-01-14 08:34:28
1429
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支持分库分表吗?
2025-01-14 08:34:26
290
Your QuestionThe document you expected this should be explainedExpected answerComment From: kacha886打算分50张表,按某个id取模,然后存到...
Gorm Unscoped not working with PreLoad on Joins
2025-01-14 08:34:23
3119
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)
2025-01-14 08:34:20
4871
GORM Playground Linkhttps://github.com/go-gorm/playground/pull/469DescriptionAutoMigrate fails if custom index is alread...
Gorm 多对多, 如何在中间关系表中加条件查询?
2025-01-14 08:34:13
643
Your Question我有一个团队表,一个成员表, 一个团队成员关系表.关系表中有个字段status用来确定成员是否还在.(我不知道这个字段是否可以用?)现在我要查询某现有团队现有人员, 怎么查询?我要查询团队拥有过的所有成员怎么查询?...
Gorm mysql 指定 not null,迁移代码会出现两次
2025-01-14 08:34:11
861
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
2025-01-14 08:34:08
150
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
2025-01-14 08:34:06
897
GORM Playground Linkhttps://github.com/go-gorm/playground/pull/534DescriptionI tried appending to a m2m association insi...
Gorm 在 Joins 里使用条件会改变 Join 类型
2025-01-14 08:34:03
1155
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
2025-01-14 08:34:01
582
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
2025-01-14 08:33:59
1071
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
2025-01-14 08:33:56
2195
GORM Playground Linkhttps://go.dev/play/p/_ejp1Mmag0kDescriptionI had an issue when adding uniqueIndex into foreign key ...
Gorm Cross table fetch duplicates results
2025-01-14 08:33:53
1026
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
2025-01-14 08:33:51
3782
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
2025-01-14 08:33:48
554
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
2025-01-14 08:33:46
6298
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?
2025-01-14 08:33:43
369
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中的多个写入操作是否需要开启事务?
2025-01-14 08:33:41
1354
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
2025-01-14 08:33:38
1779
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代码;
2025-01-14 08:33:36
370
Your Question"使用 Group 条件可以更轻松的编写复杂 SQL"得不到正确的sql代码;我参考的文档是:https://gorm.io/zh_CN/docs/advanced_query.html#%E5%AD%90%E6%...
上一页
下一页
1
…
963
964
965
966
967
…
2246
.