Gorm Invalid join condition added when using association mode in many2many relationship

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

Your QuestionThe document you expected this should be explainedExpected answerComment From: a631807682yes, includes

Gorm Named arguments/parameters not work inside JSONB search query

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

Model type Invoice struct { ID uint `gorm:"primarykey" json:"-"` UID ...

Gorm 我在获取sql server的uniqueidentifier类型的数据时,乱码了

我在获取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

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

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?

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

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

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

package mainimport ( driverMysql "github.com/go-sql-driver/mysql" "gorm.io/gorm" gormMysql ...

Gorm Please add "gorm.ErrUniqueViolation" support

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

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

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

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

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?

Your QuestionHow should WithContext be combined with Transaction? I'm particularly thinking about reacting to a cancelat...

Gorm BeforeCreate and Many2Many collide.

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

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.

When marshaling the result to be sent back through the client app that requests the data, it would be nice to lessen the...
上一页 下一页
.