Gorm AutoMigrate Belongs To Relationship always attempts to Alter table

GORM Playground Linkhttps://github.com/go-gorm/playground/pull/539DescriptionWhen I use AutoMigrate a struct with Belong...

Gorm Define an Integer primary key without auto increment

Your QuestionI know it's probably already been answered, but after intensive googling I could only find the github pull ...

Gorm 检索clickhouse,gorm的distinct在与count一起共用时未生效

Comment From: RaphaelL2e多个distinct字段时不生效,单个是正确的Comment From: github-actions[bot]The issue has been automatically marked ...

Gorm Error "WHERE conditions required" when chaingin Model() and Save()

GORM Playground Linkhttps://github.com/go-gorm/playground/pull/538DescriptionWhen chaining Model() and Save() on a model...

Gorm *gorm.DB.Order() When this function is executed, the modified statement is shared across multiple instances instead of copying the new statement.

GORM Playground Linkhttps://github.com/go-gorm/playground/pull/540https://github.com/masx200/playground/tree/masterDescr...

Gorm 使用SQLite,调用OnConflict时会报错 near "DEFAULT": syntax error

GORM Playground LinkDescriptioncreate table business_t ( id INTEGER PRIMARY KEY AUTOINCREMENT, created_at TIMESTAM...

Gorm Google spanner support

Basic question we just cannot get answered anywhere: does gorm work with spanner databases? if yes, which driver(s) can ...

Gorm logger format error, logger can't parse "%"

logger format error, logger can't parse "%"When i run this code, tx = tx.Where("username like ?", "%&quot...

Gorm How to clear previous query criteria

In one method, I need to query different tables. How to clear the previous query criteriaThe document you expected this ...

Gorm 调用 db.Model 不会重置table和查询条件

type Model1 struct {}func (m *Model1) TableName() string { return "model1"}type Model2 struct {}func (m *Mo...

Gorm gorm使用 AutoMigrate ,联合索引创建失败

Your Question我的表结构如下type Location struct { Id int `gorm:"primaryKey,autoIncrement,comment:地理位置表的自增id,&...

Gorm DropColumn String failed

GORM Playground LinkMigrations:Rollback: func(tx *gorm.DB) error { if err := tx.Migrator().DropColumn("statistic...

Gorm Is gorm really supports SQL views?

Your QuestionI found a couple of view related issues but they don't meet my request either. I want to manage my views t...

Gorm How can I use ForceIndex with Join or left join

GORM Playground Linkwhen use use Index or Force index this tag is add before the wherejust likeDB.Clauses(hints.ForceI...

Gorm how to know Upsert is insert or update

maybe i can Register Callback???Comment From: github-actions[bot]The issue has been automatically marked as stale as it ...

Gorm FirstOrCreate is not thread safe

GORM Playground Linkhttps://github.com/go-gorm/playground/pull/536DescriptionCalling FirstOrCreate from multiple gourout...

Gorm How can I change the character set of a field in Fields Tags

I want to modify the character set in the field labelsomething like thistype Tag struct { gorm.Model TagName string `g...

Gorm chained .Where().Where() clauses grouping incorrect

The way GORM applies () grouping mechanisms around where clauses has changed between minor versions (I can say specifica...

Gorm decimal precision

update := map[string]interface{}{ "field1": gorm.Expr("field1 + (?)", changes.Field1), "field2": gorm.Expr("fi...

Gorm can not query json by "Where" clause

GORM Playground Linkhttps://github.com/go-gorm/playground/pull/1DescriptionWhen I query by clause like db.Raw("SELECT co...
上一页 下一页
.