英文: call to Rollback transaction, was not expected, next expectation is: ExpectedQuery 问题 我正在尝试编写下面的...
GORM嵌入式结构体无法正常工作。
英文: GORM embedded struct not working correctly 问题 我收到了这个错误: controllers/users.go:61:36: user.ID unde...
GORM从已存在的表返回空字符串。
英文: GORM returns empty string from already-existing table 问题 我在Postgres数据库(artwork_migrate_era)中有一张表...
GORM的.Save方法无法将”has one”关系保存到数据库中。
英文: GORM .Save don't save "has one" relation to the database 问题 我有一个结构体: type Book str...
如何在GORM中永久删除关联关系
英文: How to permanently delete associations in GORM 问题 我想知道如何在GORM中永久删除关联。我尝试了文档中显示的所有示例,但无法使关联被永久删除。...
如何使用gorm从数据库中返回新创建的记录?
英文: How to return a newly created record back from the database using gorm 问题 我有一个创建新用户的函数,但是推荐的获取用户...
GORM:如何查询一对多关系?
英文: GORM: How to query has many relation? 问题 我需要找到属于特定名称的学校的所有学生。 type School struct { gorm.Model St...
GORM不会创建多对多关联。
英文: GORM don't create many2many associations 问题 我有一个模型: type Book struct { gorm.Model Title stri...
How to do union of multiple tables with where clause and order by in GORM (golang)
英文: How to do union of multiple tables with where clause and order by in GORM (golang) 问题 我正在尝试对多个表进...
恐慌:反射:在 GORM .Create() 上调用 reflect.Value.Interface 的零值。
英文: panic: reflect: call of reflect.Value.Interface on zero Value on GORM .Create() 问题 我是你的中文翻译助手,以下...
47