Gorm On Conflict clause not working with partial indexes in postgres

GORM Playground LinkI am able to reproduce the error with postgres dialect https://github.com/go-gorm/playground/pull/63...

Gorm Is enum supported?

I can't find it nowhttps://github.com/jinzhu/gorm/issues/628it was supported in the past, right?Comment From: qshuaiYeah...

Gorm 关于自定义表名函数 tablename() 问题

Your Question关于自定义表名函数 tablename() 问题The document you expected this should be explained现在的 tablename() 设置的自定义表名,是在设置了全局前...

Gorm Customized Join Table Select/Update

Your QuestionSay for example I have these structs:type Person struct { ID int Name string Addresses []Add...

Gorm support for Postgres schemas

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

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

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

Describe the featureTo be able to use an already opened SQLite DB by GormMotivationThe Gorm for MySQL and Postgres suppo...

Gorm 两表多对多关联时,append 失效

type UserTag struct { gorm.Model TagName string `gorm:"type:varchar(50);unique;comment:'标签名'"` ...

Gorm MySQL-描述表的结构体,给其属性添加autoIncrement 执行AutoMigrate()方法 数据库会新建一个索引

我的结构体节选type Site1 struct { ID string gorm:"size:25" SerialNo uint32 gorm:"column:serialN...

Gorm Custom Naming Strategy - not unique table names

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

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

GORM Playground Linkhttps://github.com/go-gorm/playground/pull/643Description初步 debug 了一下。如果只声明一个 uniqueIndex ,这里的 fie...

Gorm Gorm - AutoMigrate creates duplicate Unique Keys

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

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

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

GORM Playground Linkhttps://github.com/go-gorm/playground/pull/608DescriptionI have an existing database and consistentl...

Gorm 标签 uniqueIndex 在解析唯一性时未被判断,查看源代码发现仅判断了UNIQUE

如果使用uniqueIndex 创建了唯一索引,但是每次运行时会因为出现ALTER TABLE 语句,断点发现判断字段唯一性时仅仅读取了UNIQUE Unique: utils.CheckTruth(tagS...

Gorm AutoMigrate重复创建唯一索引?

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.

Describe the featureAllow uniqueIndex and index struct tags to be used at the time. At the moment it seems I can do one ...
上一页 下一页
.