Gorm Soft delete not working on unique fields

I have a column that is unique Thread name and when I soft delete whatever it stays in the database still as expected, b...

Gorm Create is not returning the inserted id when not using uint as its type

GORM Playground Linkhttps://github.com/go-gorm/playground/pull/1DescriptionI'm slightly changing the Create example.Chan...

Gorm How to use Limit,Offset,Order using Raw SQL ?

Describe the featureHow can use this query: db.Raw("SELECT * FROM users").Limit(10).Offset(1).Scan(&users)Thanks you...

Gorm same query execute twice in batch update

GORM Playground Linkhttps://github.com/go-gorm/playground/pull/429Descriptionbatch update using where id in (...) in for...

Gorm ARRAY[?] receives an unexpected parenthesis

GORM Playground Linkhttps://github.com/go-gorm/playground/pull/427DescriptionThe following Join statement not working as...

Gorm gorm v1 indexs

hi, i am using gorm v1 and how can i use indexes in my database.Comment From: github-actions[bot]The issue has been auto...

Gorm Clauses ignored on auto migration

Your QuestionGORM (or perhaps the postgres driver) doesn't seem to support clauses on AutoMigrate. In my case, I impleme...

Gorm mysql decimal save accuracy problem

Your Questiongo code:tx.Model(order).Debug().Updates(map[string]interface{}{"orderhy_fundrate": gorm.Expr("orderhy_fundr...

Gorm Add custom clause globally

Your QuestionHow can I make my custom clause work globally with gorm ?Some thing like this db.Using("white_list&quo...

Gorm 教学

Your Question作为GORM初学者在使用帮助文档时,发现文档逻辑混乱。The document you expected this should be explainedExpected answer希望作者能自己重新书写文档或者...

Gorm 连表查询时如何同时查询两张表字段?

Select(&Table{}) 这种方式只能查询一张表的字段, 我如果想加另外一张表的某个字段,该怎么做?Comment From: github-actions[bot]The issue has been automatica...

Gorm Table method crash

DescriptionI have a crash when using the Table method : https://gorm.io/docs/conventions.html#Temporarily-specify-a-nam...

Gorm Replica Doesn't Work In PostgreSQL

GORM Playground Linkhttps://github.com/go-gorm/playground/pull/1DescriptionI'm using Postgres db with GORM and I tried h...

Gorm it doesn't work use this way about auto create and update and delete?

Descriptiontype Model struct { CreateTime FormatTime `gorm:"column:create_time;type:datetime DEFAULT CURRENT_TIM...

Gorm Use gorm framework to create sqlite table return error database is locked

GORM Playground Linkhttps://github.com/go-gorm/playground/pull/1DescriptionI try to initial the database file when the p...

Gorm go get gorm.io/gorm get error

gorm.io/driver/sqlserver../../pkg/mod/gorm.io/driver/sqlserver@v1.0.9/update.go:13:18: cannot use db (type gorm.DB) as t...

Gorm A bug report of range query

GORM Playground Linkhttps://github.com/go-gorm/playground/pull/1Description这样使用范围查询打印的Sql居然是这样的:'''SELECT count(*) FROM ...

Gorm Execution of raw SQL requires database specific parameter format like "$1" for PostgreSQL

Your QuestionI tried to execute a simple Raw SQL using Gorm 2.0.Looking into the documentation there are 2 ways to pass ...

Gorm allow soft deletes to be deleted in future

Describe the featureWell, currently the query gorm fires is: SELECT * FROM <table or view> WHERE deleted_at IS NUL...

Gorm PrepareStmt feature can be disabled in session while it enabled in globally mode

Describe the feature// globally mode, all DB operations will create prepared statements and cache themdb, err := gorm.Op...
上一页 下一页
.