Nineya
Home
Blog
软著申请
Gorm On Conflict clause not working with partial indexes in postgres
2025-01-15 03:55:35
1958
GORM Playground LinkI am able to reproduce the error with postgres dialect https://github.com/go-gorm/playground/pull/63...
Gorm Is enum supported?
2025-01-15 03:55:32
6802
I can't find it nowhttps://github.com/jinzhu/gorm/issues/628it was supported in the past, right?Comment From: qshuaiYeah...
Gorm 关于自定义表名函数 tablename() 问题
2025-01-15 03:55:30
1269
Your Question关于自定义表名函数 tablename() 问题The document you expected this should be explained现在的 tablename() 设置的自定义表名,是在设置了全局前...
Gorm Customized Join Table Select/Update
2025-01-15 03:55:27
4001
Your QuestionSay for example I have these structs:type Person struct { ID int Name string Addresses []Add...
Gorm support for Postgres schemas
2025-01-15 03:55:24
4667
I made a further comment on issue #1280, where an error occurs if you try and specify the Postgres schema to use. i.e. n...
Gorm gorm Exec bug
2025-01-15 03:55:21
1440
DescriptionSQL 拼接看起来正常,但是实际运行报错。tx := db.GetPGEngine().Exec("UPDATE t_customer_seat SET expire_time = ?, customer_id = ?...
Gorm How to solve the problem that gorm efficiency is too low
2025-01-15 03:55:11
2442
Why is the native method significantly faster than GORM in my tests? With GORM, I noticed that it initially performs qui...
Gorm Gorm connection from Existing SQLite connection
2025-01-15 02:24:29
424
Describe the featureTo be able to use an already opened SQLite DB by GormMotivationThe Gorm for MySQL and Postgres suppo...
Gorm 两表多对多关联时,append 失效
2025-01-15 02:24:26
1542
type UserTag struct { gorm.Model TagName string `gorm:"type:varchar(50);unique;comment:'标签名'"` ...
Gorm MySQL-描述表的结构体,给其属性添加autoIncrement 执行AutoMigrate()方法 数据库会新建一个索引
2025-01-15 02:24:24
2553
我的结构体节选type Site1 struct { ID string gorm:"size:25" SerialNo uint32 gorm:"column:serialN...
Gorm Custom Naming Strategy - not unique table names
2025-01-15 02:24:18
1256
Your QuestionWhen I implement custom Namer interface for NamingStrategy type Namer interface { TableName(table string...
Gorm Gorm 1.25.6 not backwards compatible with Gorm 1.25.5
2025-01-15 02:24:15
1164
GORM Playground LinkDescriptionGorm 1.25.6 does not work with Gormigrate 2.1.1, whereas Gorm 1.25.5 does work. Since thi...
Gorm AutoMigrate keeps receating indexes if model has composite unique indexes
2025-01-15 02:24:13
508
GORM Playground Linkhttps://github.com/go-gorm/playground/pull/643Description初步 debug 了一下。如果只声明一个 uniqueIndex ,这里的 fie...
Gorm Gorm - AutoMigrate creates duplicate Unique Keys
2025-01-15 02:24:10
1224
Your QuestionI have the following Struct/Modeltype TestTable struct { ID uint `gorm:"unique;autoIncrement&q...
Gorm AutoMigrate not updating existing Foreign Key with OnDelete constraint
2025-01-15 02:24:07
4537
Descriptiontype Parent struct { ParentID uuid.UUID `gorm:"type:uuid;primary_key;" json:"paren...
Gorm Creating unique indexes with naming and where condition in postgres will create redundant error indexes
2025-01-15 02:24:05
1278
GORM Playground Linkhttps://github.com/go-gorm/playground/pull/616DescriptionFor this field:https://github.com/go-gorm/p...
Gorm AutoMigrate creating different unique Index on subsequent runs
2025-01-15 02:24:02
2859
GORM Playground Linkhttps://github.com/go-gorm/playground/pull/608DescriptionI have an existing database and consistentl...
Gorm 标签 uniqueIndex 在解析唯一性时未被判断,查看源代码发现仅判断了UNIQUE
2025-01-15 02:23:53
972
如果使用uniqueIndex 创建了唯一索引,但是每次运行时会因为出现ALTER TABLE 语句,断点发现判断字段唯一性时仅仅读取了UNIQUE Unique: utils.CheckTruth(tagS...
Gorm AutoMigrate重复创建唯一索引?
2025-01-15 02:23:50
1132
Your Questiontype User struct { gorm.Model PublicID uint `gorm:"type:char(10);not null;unique"`}db.AutoM...
Gorm Support unique and uniqueIndex together on the same field.
2025-01-15 02:23:48
538
Describe the featureAllow uniqueIndex and index struct tags to be used at the time. At the moment it seems I can do one ...
上一页
下一页
1
…
930
931
932
933
934
…
2246
.