Gorm Use *DB.Raw(sql string, values ...interface{}) method directly occur Error 1040: Too many connections

Use *DB.Raw(sql string, values ...interface{}) method directly occur Error 1040: Too many connectionsgorm v1.25.1dsn := ...

Gorm Error "NamingStrategy does not implement schema.Namer (missing method UniqueName)" after upgrade 1.25.5 -> 1.25.7

DescriptionAfter 1.25.5 -> 1.25.7 upgrade error is throwncannot use namingStrategy (variable of type NamingStrategy) ...

Gorm Why Open support multi Option but only apply the last one after sort?

Your QuestionI was wondering why Open(dialector Dialector, opts ...Option) support multi Option and sort it but only the...

Gorm POSTGRES How to check if error type is DUPLICATE KEY

@jinzhu OLD Ticket: https://github.com/go-gorm/gorm/issues/4037I did not find any solution for postgres yet. I searched ...

Gorm Simplify relation mapping between tables

Describe the featureWould please simplify the relation mapping between tables like SqlAlchemy. for example:class Collect...

Gorm Use *DB.Row(sql string, values ...interface{}) method directly occur Error 1040: Too many connections

gorm v1.25.1dsn := "root:xxx@tcp(127.0.0.1:3306)/xxx?charset=utf8mb4&parseTime=True&loc=Local"gormDb, ...

Gorm PostgreSQL inet data type support

Your QuestionError for PostgreSQL inet format parsingSince pgx migrate to v5 It doesn't provide pgtype.Inet anymore and ...

Gorm How to create an unlogged table in postgresql using GORM?

Your QuestionHow to create an unlogged table in postgresql using GORM?The expected SQL is:CREATE UNLOGGED TABLE <tabl...

Gorm How to create association with embedded struct used?

Your QuestionGorm will not create foreign key if the relation field is embeddedtype TestA struct { ID uint `gorm:&q...

Gorm db.Not method when used with multiple Where conditions has changed unexpectedly

GORM Playground Linkhttps://github.com/go-gorm/playground/pull/695https://github.com/go-gorm/playground/pull/696Descript...

Gorm How force primary key to int4 (PostgreSQL) ?

Your QuestionHow force primary key to int4 with PostgreSQL ?All Golang types are reported to int8 (bigint) : - uint - in...

Gorm Can't use preload when number of parameters exceeds 65535

Your QuestionHello everybody. I'm facing the same problem described in this issue and I would be very grateful if anyone...

Gorm Updates not working when a column type is int and be set to zero

GORM Playground LinkDescriptionHere is the test codeCREATE TABLE `test_table` ( `id` int(10) unsigned NOT NULL AUTO_INC...

Gorm [Feature Request] Support UNIX Socks

Describe the featureUnix Sock support, such as /var/run/mysqld/mysqld.sock.MotivationSupport would enable a shared sock ...

Gorm Save Error! UNIQUE constraint failed: user_infos.id

here is my model i update userinfo at here and i alreay have a row in my databasehowever : gorm use insert .... not up...

Gorm Skip creating relation records with primary keys

Describe the featureSkip creating relation records with primary keys, for example:var languages = map[string]*Language{ ...

Gorm same model to create multiple tables,how to create index

Your QuestionI used the same model to create multiple tables, but the indexes of these tables were not established prope...

Gorm How to perform dynamic conditional queries with custom SQL?

Your QuestionHow to perform dynamic conditional queries with custom SQL?The document you expected this should be explain...

Gorm Associations, SqlService and String Ids don't work together

GORM Playground Linkhttps://github.com/go-gorm/playground/pull/693DescriptionAssociations don't work when using a String...

Gorm Gorm Preload Condition Question

I have the following structs declared:type Permissions struct { gorm.Model Admin bool Manager bool}type Crede...
上一页 下一页
.