Gorm Soft Cascade Delete

Does gorm have soft cascade delete function? I read Gorm's documentation and tried several methods, but none was success...

Gorm How to set charset for a new PostgreSQL database?

Your QuestionHow to set charset (encoding) for a new PostgreSQL database?The document you expected this should be explai...

Gorm Sort has_many items

Is there a way to sort the items in a has-many-association?I have one model A that has many of B (fields: a, b, sort) an...

Gorm Unknown prepared statement handler (401) given to mysqld_stmt_execute

Your QuestionUnknown prepared statement handler (401) given to mysqld_stmt_execute . func UserGet(where string, args .....

Gorm built-in seeding functionality

Describe the featureI am proposing that Gorm has a built in Seeding method so that developers can quickly seed databases...

Gorm Querying database tables and columns is wrong

Your QuestionI have two tablestype PayLog struct { ID int `json:"id" gorm:"column:id...

Gorm Migrator on distributed table Clickhouse driver ignore create index

Describe the featureMigrator on distributed table Clickhouse driver ignore create indexMotivationI use clickhouse driver...

Gorm Unit testing with go-sqlmock

Your QuestionHi, I wanted to know what the best strategy to write unit tests with GORM. I've read a couple different str...

Gorm How to make Postgres "SELECT DISTINCT ON" query using gorm sql builder?

Your QuestionIs it possible build "SELECT DISTINCT ON" query using sql builder? The document you expected this should be...

Gorm Preload as deep as necessary

I'm using Gorm and have some questions as to how to retrieve nested SubComments from the model. The problem I'm getting ...

Gorm Provides friendlier errors for finisher api

Describe the featureProvide more friendly errors for those finisher api that need to modify the passed parameters.Motiva...

Gorm Feature request: AutoMigration support for postgres composite types

Describe the featureAllow for an AutoMigrateType function, that can take a struct and translate it to a composite type.C...

Gorm PostgreSQL "infinity" value for float is

Describe the featurePosgreSQL "infinity" for Numeric datatypeMotivationA Numeric field on my database was marked as "inf...

Gorm can we make an error code like ErrRecordNotFound not arrays as well.

Describe the featureJust like ErrRecordNotFound works for "First" queries, can we make it work for "Find" queries as wel...

Gorm Using unscoped when hard deleting an association or appending does not work as expected.

GORM Playground Linkhttps://github.com/go-gorm/playground/pull/1DescriptionGorm version: 1.25.2Hello there, I cannot mak...

Gorm Fields with "read-only" permissions / ignore when write

Describe the featureI'd love to have a "read-only" fields, i.e. such that are ignored during migration and during writes...

Gorm Polymorphic: find Owner

Your Questiontype Cat struct { Id int Name string Toy Toy gorm:"polymorphic:Owner;"}type Dog struct { Id ...

Gorm some suggestions

db.Updates do not support custom type of map[string]interface{}db.Callback().Raw do not support db.RawThe document you e...

Gorm What is the purpouse of gorm.ScanOnConflictDoNothing?

Your QuestionHi Jinzhu,i have a quick technical question for you about the gorm.ScanOnConflictDoNothing mode on the sqls...

Gorm Should I explicitly create a relation symmetrical to "Belongs To" or "Has Many"?

(Initially asked in SO - I will synchronize answers if any)Your QuestionI am new to ORM (and GORM) so apologies if this ...
上一页 下一页
.