Nineya
Home
Blog
软著申请
Gorm Update docs to reflect db.Save behavior
2025-01-15 04:16:09
1475
DescriptionPlease update the docs at https://gorm.io/docs/update.html#Save-All-Fields to reflect the correct behavior.It...
Gorm SQL very slow while query from a huge database table
2025-01-15 04:16:07
3249
Your QuestionHi there,There is a huge MySQL table in my system, more than 14,000,000 records in it, and there are primar...
Gorm gorm v1.25.12, unknown field PreparedSQL
2025-01-15 04:16:03
917
And me too, The error message:pkg\mod\gorm.io\plugin\dbresolver@v1.3.0\dbresolver.go:141:5: unknown field PreparedSQL in...
Gorm model只有一个字段并设置为unique,使用AutoMigrate,第二次启动服务Migrate会报错
2025-01-15 04:16:00
6059
model只有一个字段并设置为unique,使用AutoMigrate,第二次启动服务Migrate会报错type Labels struct { Label string `gorm:"column:label;size:...
Gorm Can't use placeholder with Order()
2025-01-15 04:15:57
1508
I need to use Order with placeholders, e.g tx.Order("CASE WHEN Field1 = ? THEN 1 ELSE 0 END", FieldValue)But gorm does n...
Gorm AutoMigrate Does Not Update Existing Check Constraint
2025-01-15 04:15:54
5567
GORM Playground LinkNote: I attempted to create a GORM Playground Pull Request to reproduce this issue, but I encountere...
Gorm AutoMigrate Does Not Update Existing Check Constraint
2025-01-15 04:15:51
5085
GORM Playground LinkNote: I attempted to create a GORM Playground Pull Request to reproduct this issue, but I encountere...
Gorm db.frist bug
2025-01-15 04:15:49
3193
When the structure is not cleared, errors will occur. The SQL statement inherits the 'where' condition from the previous...
Gorm gorm v2.0 unit testing with sqlmock
2025-01-15 04:15:43
23454
DescriptionUnit testing with sqlmock works great with V1. But after updating to V2 the same test fails with following er...
Gorm gorm gen 生成的 entity, 应该怎么写 hooks 呢?
2025-01-15 04:15:39
2319
用了 gen 之后现在生成的目录如下doentity如果我要写 hooks, 怎么在 entity 目录之外写 hooks 呢Comment From: seth-shi我是要针对 entity 下的某个模型, 创建的时候要生成 uuid ...
Gorm 连接PgSql时,DisableAutomaticPing设置为true,但还是会触发--ping命令,并且连接不断开,导致连接数一直在增加
2025-01-15 04:15:36
4714
场景:在使用go-kratos框架中实现一个定时任务,该任务会查询pgsql中的数据,因此会在项目启动时创建pgsql的连接,在连接的配置信息中DisableAutomaticPing设置为true,企图关闭自动ping的功能问题:但在运行...
Gorm unsupported Scan, storing driver.Value type []uint8 into type *time.Time
2025-01-15 04:15:29
2008
Your QuestionMysql中的TIME类型的字段映射Go的time.Time类型时报标题错误。The document you expected this should be explainedExpected answer如何解...
Gorm Single Table Inheritance
2025-01-15 04:15:27
5551
Your QuestionGorm homepage explains that it has support for single-table inheritance. But it has not been mentioned ho...
Gorm Joins 必须要写sql语句?好呆的设计啊
2025-01-15 04:15:24
2427
db.Joins("Company", db.Where(&Company{Alive: true})).Find(&users)的输出结果是 select ... from sometable Company查了不少文章,...
Gorm Wiki link not up to date
2025-01-15 04:15:18
1255
Hey, wiki link redirects to https://skillcombo.com/topic/go/ but it doesn't existComment From: github-actions[bot]The is...
Gorm gorm在xa事务的时候PrepareStmt选项失败了
2025-01-15 04:15:16
1357
GORM Playground Linkhttps://github.com/go-gorm/playground/pull/1Description用的就是最新的 gorm.io/gorm v1.25.10设置了PrepareStmt ...
Gorm 使用sqlite数据库 AutoMigrate时复合唯一索引会重复多次更新字段
2025-01-15 04:15:11
929
使用sqlite数据库 AutoMigrate时复合唯一索引会重复多次更新字段type Template struct { Id intgorm:"column:id;primaryKey;auto...
Gorm 可以在一个事务中调用 CreateInBatches 吗?
2025-01-15 04:15:08
911
根据文档说明,批量插入方法 CreateInBatches 会开启一个事务,文档也说 gorm 支持嵌套事务,而 MySQL 官方文档则明确不支持嵌套事务,但支持 SavePoint,看到 gorm 的实现有用到 SavePoint 。请问...
Gorm mysql里表包含bool类型查询结果转map数组时候,出现bool类型低层自动转string类,出现原本bool=true或false对应1或0时候,转string变成空字符串
2025-01-15 04:15:05
587
Comment From: github-actions[bot]The issue has been automatically marked as stale as it missing playground pull request ...
Gorm 为什么gorm升级导致自动创建表重建索引
2025-01-15 04:14:59
1290
gorm.io/gorm v1.20.12 新增datatypes.JSON 导致 gorm.io/gorm升级到v1.25.9.自动迁移分表创建的索引名规则变更,巨坑Comment From: github-actions[bot]The...
上一页
下一页
1
…
911
912
913
914
915
…
2246
.