Gorm betch save model, on conflict by uniqueIndex, return id err

GORM Playground Linkhttps://github.com/go-gorm/playground/pull/705Descriptionbetch save Conflict by uniqueIndex, id er...

Gorm betch save model, on conflict by uniqueIndex, return id err

GORM Playground Linkhttps://github.com/go-gorm/playground/pull/705Descriptionbetch save Conflict by uniqueIndex, id er...

Gorm SQL printed to terminal is error

GORM Playground Linkhttps://github.com/go-gorm/playground/pull/702DescriptionWhen I use the where statement, the printed...

Gorm 通过 DSN 设置 readTimeout 无法生效

Your Question出发点是想设置全局的查询超时时间看了 https://github.com/go-sql-driver/mysql#readtimeout 这里的介绍,我在 DSN 中参入了 &readTimeout=1m...

Gorm Inner join with condition

GORM Playground Linkplaygroud issueDescriptionHow to support inner join with condition, e.x select a.id,a.name,b.id from...

Gorm gorm v1.25.6 : Create error when using map[string]interface{} with Postgres

GORM Playground Linkhttps://github.com/go-gorm/playground/pull/685DescriptionRelated to https://github.com/go-gormigrate...

Gorm Joins and Preload Regression with gorm version 1.25.7

GORM Playground Linkhttps://github.com/go-gorm/playground/pull/688Descriptionsuppose we have the following data structur...

Gorm How do you copy a DB object?

Your QuestionHow do you copy a DB? I tried doing the following:q := db.Model(&Model{}).Select("*")r := q.S...

Gorm Why Pluck column type is time.Time value no results, but column type is string value have results.

GORM Playground Linkhttps://github.com/go-gorm/playground/pull/1DescriptionGO 1.22.1GORM 1.25.7Comment From: github-acti...

Gorm ""

DescriptionComment From: github-actions[bot]The issue has been automatically marked as stale as it missing playground pu...

Gorm Belongs To Relation failed when owner's field name is same to foreignKey

GORM Playground Linkhttps://github.com/go-gorm/playground/pull/701DescriptionThere are two struct User and Profile. Befo...

Gorm Mysql在一对多情况下会双倍插入修改的外键内容

GORM Playground Linkhttps://github.com/go-gorm/playground/pull/1Descriptionmysql数据库,当修改一对多的外键数据时,外键对应的数据会被双倍插入数据库。代码如下:p...

Gorm Create View feature is missing, kind of very important

Create View feature with GormDescribe the feature db. View. CreateOrUpdate(). Tables(....tables Names ). // str...

Gorm can I read fieldDescriptions after execute sql?

Describe the featureMotivationRelated IssuesComment From: github-actions[bot]This issue has been automatically marked as...

Gorm clause/expression.go does not provide any mechanism to escape ? literal inside SQL statement

GORM Playground Linkhttps://github.com/go-gorm/playground/pull/699DescriptionIn addition to JSON Path, we also need to u...

Gorm Please map mysql error 1451 to gorm error

Describe the featureMySQL error 1451 (when you try to delete a parent row that has children, and a foreign key constrain...

Gorm Is gorm supports multi-rows update?

Your QuestionIs gorm supports multi-rows update?My data in golang type of map[string]string (value - > set_value)My S...

Gorm How to change clauses of a given statement (UPDATE's ["UPDATE", "SET", "WHERE"] to ["UPDATE", "SET", "FROM", "WHERE"])

Your Questionval := "temp"db.Model(&property.Property{}).Clauses(clause.From{Tables: []clause.Table{{Name:...

Gorm Use FROM clause on update (PostgreSQL)

Your QuestionHiHow add a FROM clause on update to use PostgreSQL join ability on update?I don't wanna use sub-query or s...

Gorm Query with NOW() - INTERVAL '? seconds' error: expected 0 arguments

GORM Playground Linkhttps://github.com/go-gorm/playground/pull/1DescriptionI'm using this:var hours float64var seconds i...
上一页 下一页
.