Gorm Allow for inner or right join in Join preloading

Describe the featureWould like to be able to specify a Join type / direction when using Joins Preloading. MotivationCurr...

Gorm gorm 如何指定使用 postgres 中 schema 下的 table

默认 gorm 是使用 db 下的 table,那如何使用 db 下 schema 中的 table 呢?Comment From: github-actions[bot]The issue has been automatically m...

Gorm tag uniqueIndex always cause a field migration

GORM Playground Linkhttps://github.com/go-gorm/playground/pull/1Descriptioncode to repofunc main() { mc := mysql.Conf...

Gorm the output of .Debug() for UUID binary(16)

I use MySql binary(16) to store UUID generated from google uuid pkg. When under '.Debug()' mode, like db.Debug().Create(...

Gorm the output of .Debug() for UUID binary(16)

GORM Playground Link', but some uuid will be output as '%5ČA\ufffd@\"\ufffd4\ufffd q! \ufffd' which is invalid UTF-8.Com...

Gorm sqlserver 查询出的guid 与数据库中的guid存在字节顺序不对的问题

这是我的字段定义type StationInfo struct { Id uuid.UUID gorm:"column:id;type:char(36)" Name string gorm:"column:name" ...

Gorm 关于自定义表名函数 tablename() 问题

现在的 tablename() 设置的自定义表名,是在设置了全局前缀表名之后覆盖的表名。如果我想用前缀和自定义表明,那就只能把前缀也放到 tablename() 函数里才行。像其他的 orm 是会在获取到自定义表名后再加上全局的自定义前缀。...

Gorm How to get a map[string]string of Structure/Model Fields and DB Columns?

HiIn this issue we see https://github.com/go-gorm/gorm/issues/4497 that we are receiving only the DB Columns, but to get...

Gorm why GORM perform single create, update, delete operations in transactions by default ?

Your Questionwhy gorm perform single create, update, delete operations in transactions by default ? a single sql really...

Gorm Fields of custom types are automatically ignored when using the model's migration function

自定义的类型,定义如下type Datetime time.Time````下面是模型中属性的定义```goCreateTime common.Datetime `json:"createTime" gorm...

Gorm How to create a foreign key to constraint multiple columns

Your QuestionHow to create a foreign key to constraint multiple columns ? As SQL:CONSTRAINT "college" FOREIGN KEY ("coll...

Gorm gorm 添加外键和引用 就不能 自动迁移(迁移就报错)

报错如下: define a valid foreign key for relations or implement the Valuer/Scanner interfaceComment From: github-actions[bot...

Gorm gorm使用,连接db报错

[mysql] 2018/03/30 11:27:22 packets.go:36: unexpected EOF[mysql] 2018/03/30 11:27:22 connection.go:311: invalid connecti...

Gorm bug ??

GORM Playground Linkmodule gorm-testgo 1.19require ( github.com/go-sql-driver/mysql v1.7.0 // indirect github.com/...

Gorm Cannot add several OnConflict clauses

GORM Playground Linkhttps://github.com/go-gorm/playground/pull/559DescriptionSQLite supports multiple OnConflict clauses...

Gorm Seach data error when use goroutine

There is no problem in general use, but when I create a query containing uuid in goroutine, the returned value will be w...

Gorm Is there a better way to handle the 'database is locked' in SQLite?

Is there a better way to handle the 'database is locked' in SQLite?The SQLite is unsupported concurrent and only allows ...

Gorm Read date as []uint8

GORM Read Date as []uint8The document you expected this should be explainedHello, i am currently using GORM with mysql ...

Gorm AutoMigrate fails when database has views or rules

GORM Playground Linkhttps://github.com/go-gorm/playground/pull/558DescriptionIf views were created using columns of an e...

Gorm gorm automigrator fails with postgres when a view exists despite no updates to struct in migration

GORM Playground Linkhttps://github.com/go-gorm/playground/pull/508DescriptionScenario:Migrate table (Make sure the struc...
上一页 下一页
.