玖涯软件开发
Home
Blog
Gorm Soft delete not working on unique fields
2025-01-14 07:57:58
2424
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
2025-01-14 07:57:56
3001
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 ?
2025-01-14 07:57:53
644
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
2025-01-14 07:57:51
544
GORM Playground Linkhttps://github.com/go-gorm/playground/pull/429Descriptionbatch update using where id in (...) in for...
Gorm ARRAY[?] receives an unexpected parenthesis
2025-01-14 07:57:49
1456
GORM Playground Linkhttps://github.com/go-gorm/playground/pull/427DescriptionThe following Join statement not working as...
Gorm gorm v1 indexs
2025-01-14 07:57:46
1603
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
2025-01-14 07:57:43
1920
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
2025-01-14 07:57:41
2755
Your Questiongo code:tx.Model(order).Debug().Updates(map[string]interface{}{"orderhy_fundrate": gorm.Expr("orderhy_fundr...
Gorm Add custom clause globally
2025-01-14 07:57:38
733
Your QuestionHow can I make my custom clause work globally with gorm ?Some thing like this db.Using("white_list&quo...
Gorm 教学
2025-01-14 07:57:36
274
Your Question作为GORM初学者在使用帮助文档时,发现文档逻辑混乱。The document you expected this should be explainedExpected answer希望作者能自己重新书写文档或者...
Gorm 连表查询时如何同时查询两张表字段?
2025-01-14 07:57:33
1290
Select(&Table{}) 这种方式只能查询一张表的字段, 我如果想加另外一张表的某个字段,该怎么做?Comment From: github-actions[bot]The issue has been automatica...
Gorm Table method crash
2025-01-14 07:57:30
1751
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
2025-01-14 07:57:28
4177
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?
2025-01-14 07:57:25
2532
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
2025-01-14 07:57:23
1951
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
2025-01-14 07:57:20
3781
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
2025-01-14 07:57:16
1935
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
2025-01-14 07:57:08
1185
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
2025-01-14 07:57:06
1026
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
2025-01-14 07:57:03
855
Describe the feature// globally mode, all DB operations will create prepared statements and cache themdb, err := gorm.Op...
上一页
下一页
1
…
999
1000
1001
1002
1003
…
2246
.