Nineya
Home
Blog
软著申请
Gorm Invalid join condition added when using association mode in many2many relationship
2025-01-14 16:56:57
2659
Your QuestionWhy is there a .. AND "distribution_places"."distribution_id" IN (NULL) added to my join condition? I need ...
Gorm Does the time consumption of logging include the time to obtain connections
2025-01-14 16:56:54
115
Your QuestionThe document you expected this should be explainedExpected answerComment From: a631807682yes, includes
Gorm Named arguments/parameters not work inside JSONB search query
2025-01-14 16:56:52
2312
How to search value in nested array JSON?Hi, I want to search a value inside a jsonb that stored in PostgreSQLHere the j...
Gorm Gorm retrive different UUID value from that in the database - MSSQL
2025-01-14 16:56:49
4509
Model type Invoice struct { ID uint `gorm:"primarykey" json:"-"` UID ...
Gorm 我在获取sql server的uniqueidentifier类型的数据时,乱码了
2025-01-14 16:56:04
843
我在获取sql server的uniqueidentifier类型的数据时,乱码了,我go的接收数据类型是[]byte,接收到了后转为string类型时,乱码!以下是乱码信息:Db\u000b��C.A�E\u0005QǪWB,实际上应该是...
Gorm Model with UUID association gets re-created when other fields are updated
2025-01-14 16:56:00
558
GORM Playground Linkhttps://github.com/go-gorm/playground/pull/607DescriptionI am trying to use UUID's as primary keys, ...
Gorm Add caching layer of query
2025-01-14 16:55:58
2765
Is there way to add new caching layer feature such as Redis cache as long query and also expiration of caching. ?Thank y...
Gorm add additional methods to gorm.DB?
2025-01-14 16:55:55
1659
Your Questionis there a way to add additional methods to gorm.DB? i want to make some wrappers for existing gorm.DB meth...
Gorm Id is not got from db
2025-01-14 16:55:52
1081
GORM Playground Linkhttps://github.com/go-gorm/playground/pull/605DescriptionHi!Planet, when does not have id, this must...
Gorm Many2Many fails to create a join table record for an existing associated record
2025-01-14 16:55:50
3856
https://github.com/go-gorm/playground/pull/604DescriptionHaving problems with many2many, I went back to the basics and s...
Gorm got nil pointer dereference when i passing a nonexist timezone name in time.FixedZone in mysql.Config.Loc
2025-01-14 16:55:46
5259
package mainimport ( driverMysql "github.com/go-sql-driver/mysql" "gorm.io/gorm" gormMysql ...
Gorm Please add "gorm.ErrUniqueViolation" support
2025-01-14 16:55:44
1260
Describe the featureA new error type like gorm.ErrUniqueViolation would allow handling errors related to unique violatio...
Gorm Add error variable to check if an error is "Unique Constraint Violation" type
2025-01-14 16:55:41
699
Describe the featureAdd an error var in errors.go for unique constraint violations, so GORM users can check for that err...
Gorm Including data from a custom function (external API call) in query responses
2025-01-14 16:55:38
727
Your QuestionIs there a way to call a function (retrieve data from external API) in GORM and pass it data (e.g. ID) from...
Gorm Id is not set properly
2025-01-14 16:55:36
854
GORM Playground Linkhttps://github.com/go-gorm/playground/pull/605DescriptionHi!I am having this problem when I try to C...
Gorm Injection risk using ToSQL
2025-01-14 16:55:33
826
Injection risk using ToSQLIn my case i should send a sql query to another service in string. I used ToSQL function to ge...
Gorm How should context be combined with a transaction?
2025-01-14 16:55:30
1802
Your QuestionHow should WithContext be combined with Transaction? I'm particularly thinking about reacting to a cancelat...
Gorm BeforeCreate and Many2Many collide.
2025-01-14 11:45:53
4385
GORM Playground LinkHere is my playground link: https://github.com/go-gorm/playground/pull/596. I've reproduced the mode...
Gorm Unnecessary ALTER TABLE during migration
2025-01-14 11:45:51
6178
DescriptionHere's my model type SalesOrderItems struct { ID uint `json:"id" gorm:"prim...
Gorm Exclude unpreloaded relationships when parsing the query result to JSON or map.
2025-01-14 11:45:46
1455
When marshaling the result to be sent back through the client app that requests the data, it would be nice to lessen the...
上一页
下一页
1
…
951
952
953
954
955
…
2246
.