Nineya
Home
Blog
软著申请
Gorm Returning Data From Deleted Rows failed
2025-01-14 08:37:41
596
Your QuestionWhy did my code for testing Returning failed?s := "%s:%s@tcp(%s)/%s?charset=%s&parseTime=%t&lo...
Gorm Custom Data Type Scanner Method Never Get Called
2025-01-14 08:37:39
4251
DescriptionI have a custom data type and its Scanner method that will check for any data input// TimeString typetype Tim...
Gorm gorm通过Raw查询,然后Scan到[]map[string]interface{} 字段名转驼峰,通过NamingStrategy可以实现吗
2025-01-14 08:37:36
1592
package mainimport ( "log""github.com/iancoleman/strcase""gorm.io/driver/mysql""gorm.io/gorm""gorm.io/gorm/schema")ty...
Gorm 自动会多出一个条件( order. = 0.000000 ), 使用 First 自动会多出一个order by 排序, 使用原生Db.Raw 也会多出这些, 这个是大BUG ?
2025-01-14 08:37:31
6202
GORM Playground Linkhttps://github.com/go-gorm/playground/pull/1Description 自动会多出一个条件( `order`. = 0.000000 ), 使用 F...
Gorm 使用 Serializer 标签实现json序列化读写入库会报错
2025-01-14 08:37:28
1192
# 我的问题是:type Content struct { Id uint64 `gorm:"primaryKey;column:id;type:bigint unsigned;not null&...
Gorm How to execute MSSQL stored procedure and take the result in GORM
2025-01-14 08:37:25
676
How to execute MSSQL stored procedure and take the result in GORMList of Objects or MapComment From: a631807682gorm does...
Gorm Is there any way to set the time field to null?
2025-01-14 08:37:23
1216
Your QuestionThe time field cannot be set to null if it already has a valuea go struct:type Test struct { gorm.Model ...
Gorm function Updates do not seem to behave well
2025-01-14 08:37:20
10403
(ENGLISH version)Why gorm.DB.Updates always changes the created_at field when performing updating?Here is a minimalist e...
Gorm 在更新数据时join表不生效?
2025-01-14 08:37:17
1482
环境go 1.19.5gorm v1.23.10mysql 5.6代码由于实际业务代码过于复杂,此处抽象举例我有两张表,结构:type User struct { Id int Name string GroupId in...
Gorm mysql scan rows to map[string]interface,type DECIMAL is string #4466
2025-01-14 08:37:14
2560
GORM Other Playground Linkhttps://github.com/go-gorm/playground/pull/337mysql: scan rows to map[string]interface,type DE...
Gorm preload don't work
2025-01-14 08:37:11
1726
how to print the preload sql , I mean "Preload("Top2Comments")"'s executing processes Comment From: github-actions[bot]T...
Gorm 导入报错
2025-01-14 08:37:04
2366
go: gorm.io/gorm@v1.24.5: verifying module: gorm.io/gorm@v1.24.5: checking tree#15345421 against tree#15425001: reading ...
Gorm The result of the update did not meet expectations.
2025-01-14 08:37:01
1636
I have defined two structs.type User struct { Uid string `json:"uid" gorm:"primaryKey; type:char(...
Gorm composite key auto-increment returned 0 upon Create of new record
2025-01-14 08:36:59
352
GORM Playground Linkhttps://github.com/go-gorm/playground/pull/417DescriptionUse Case:Define table with multiple primary...
Gorm default:null columns do not update with FullSaveAssociations
2025-01-14 08:36:51
974
GORM Playground Linkhttps://github.com/go-gorm/playground/pull/554Descriptiontype User struct { gorm.Model Name ...
Gorm why Omit is not used in select.
2025-01-14 08:36:49
1060
I want to exclude some columns when selecting.Comment From: tempurai+1 here, really neededComment From: Tang8330@jinzhu ...
Gorm Automigrate with uniqueIndex error on 1.24.5
2025-01-14 08:36:46
2660
DB: PostgresqlDescriptionLooks like gorm 1.24.5 has an issue if you create a model with uniqueIndex attribute. Looks lik...
Gorm char()标签不生效
2025-01-14 08:36:43
649
Your Question使用定长字符串作为主键ID string `gorm:"primarykey;char(44)"`上面这样写报Error 1170错误:Error 1170: BLOB/TEXT colu...
Gorm gorm.io/driver/sqlserver error on start project
2025-01-14 08:36:40
1256
Descriptionversion GO 1.19.5ERROR:gorm.io/driver/sqlservergo\pkg\mod\gorm.io\driver\sqlserver@v1.3.2\sqlserver.go:90:22:...
Gorm gorm 分组查询文档描述用法的问题
2025-01-14 08:36:38
2346
Your Question//这是官网对分组查询的描述https://gorm.io/docs/advanced_query.html#Group-Conditionsdb.Where( db.Where("pizza = ?&...
上一页
下一页
1
…
960
961
962
963
964
…
2246
.