Gorm Support UNION and UNION ALL

Describe the featureMotivationRelated IssuesComment From: itmisxcommon APIdb.Table("(? UNION ALL ?) as user",d...

Gorm postgres use gorm v1.25.9 生成的update语句有误

升级1.25.9后,还存在先求数量再更新生成的sql异常情况,案例请看问题二https://github.com/go-gorm/playground/issues/708最终生成的sql为UPDATE "test" SET "a"='22...

Gorm Support for Many to Many Preload Joins

Describe the featureI would like to request a feature that allows GORM to support conditional many to many (m2m) preload...

Gorm sqlite automirate failed by "near "unsigned": syntax error"

GORM Playground Linkversion: 1.25.4column_type: uint64Comment From: github-actions[bot]The issue has been automatically ...

Gorm Bug: SetColumn can possible update wrong column I BeforeUpdate hook

GORM Playground Linkhttps://github.com/go-gorm/playground/pull/707DescriptionRelated to #4990The SetColumn updates the w...

Gorm ON DUPLICATE KEY UPDATE 未按预期工作

Your Question e = stat.DB().Model(stat).Clauses(clause.OnConflict{ //Columns: nil, //Where: ...

Gorm Error 1064 (HY000): Unsupported command(COM_STMT_PREPARE)

func QueryLsuTasks(c gin.Context, conditions map[string]interface{}) ([]entity.TaskMetaLsuTask, error) { tasks := mak...

Gorm Creating new field with unique index with condition failing

GORM Playground Linkhttps://github.com/go-gorm/playground/pull/570DescriptionAs per the documentation on https://gorm.io...

Gorm No way to optionally return a single record without logging error

Your QuestionHow can I find one record that may or may not be present and neither case is an error?The document you expe...

Gorm Is the issue of zero values in gorm struct solved?

Your QuestionIs the issue of zero values in gorm struct solved?Comment From: gg1229505432which zero . I need more detail...

Gorm support custom dns cache

Your QuestionWhen connecting to a database using a domain name, DNS resolution is triggered every time a connection is e...

Gorm how can i read data that "with totals" from clickhouse?

Your QuestionThe document you expected this should be explainedhow can i read data that "with totals" from clickhouse?...

Gorm gorm.Statement.QuoteTo(writer clause.Writer, field interface{}) doesn't do what I would expect for a clause.Table with an Alias field

GORM Playground Linkhttps://github.com/go-gorm/playground/pull/614DescriptionWe see here that the expected output (accor...

Gorm unsupported relations for schema ExamPaper

have tow relation structtype ExamPaper struct { gorm.Model Name string gorm:"type:varchar(255);i...

Gorm [Question] How to reference Many2Many custom table

Hello! Hope everything's fine with you.Just doing some experimentation with GORM and I found myself having a hard time t...

Gorm i get a error : ERROR: prepared statement "lrupsc_1_20" already exists, and plansource is not the same.

i get a error : ERROR: prepared statement "lrupsc_1_20" already exists, and plansource is not the same. (SQLSTATE 42P05)...

Gorm FindInBatches fail when using composite primary key

GORM Playground Linkhttps://github.com/go-gorm/playground/pull/491FindInBatches reports "primary key required" due to th...

Gorm 数据库有记录为啥报 record not found

Comment From: liu-cngorm v1.25.5 Comment From: liu-cngo 1.21.0Comment From: liu-cngorm.io/driver/mysql v1.5.2Comment Fro...

Gorm Error 1047 (08S01): Unsupported command(COM_STMT_PREPARE)

type Result struct { Countryid int Area string Code string}var res Resultdb.Raw("select countryid, ar...

Gorm Can't get data from columns that names contain numbers

Hello, I'm trying to make SELECT query to table with column name that contain number:Select("id AS IDENT, t245a AS TBB1A...
上一页 下一页
.