Gorm db.AutoMigrate(&MyTest{}) 时报错

GORM Playground Linkhttps://github.com/go-gorm/playground/pull/1Description背景信息:go:1.18gorm:1.23.8sqlite3结构体如下type MyTes...

Gorm Wrong query is generated when using scopes beside group conditions

DescriptionI'm trying to implement a dynamic query filter thorugh gorm scopes, when scope has simple condition it genera...

Gorm db.Raw("show table status").Scan(&r)

type TableS struct { Name string `gorm:"column:Name"` Engine string `gorm:&q...

Gorm How can i close rows from DB.Raw().Scan()?

Your Questioni'm using postgresql and using DB.Raw().Scan() gorm creates a lot of connections... i had the same problem ...

Gorm Single table inheritance.

Describe the featurei'm working on a project and i have a lot of entities that need to be in single table inheritance .b...

Gorm Struck when setting maxOpenConnection on db

GORM Playground Linkhttps://github.com/go-gorm/playground/pull/1DescriptionHi I tried setting the following db configura...

Gorm when release the rust version of gorm?

Describe the feature求个rust版本的gorm。Motivationrust的几个orm都不能打。Comment From: li-jin-gouGood idea and I will send this issue ...

Gorm Hello,Query list report: "reflect: call of reflect.Value.Elem on zero Value;",The code view is as follows

1.This is the model2.Data table recording3.Query List4.Get a list of result sets5.warningUnder the condition of not taki...

Gorm Association mode changes the value of primary_key

GORM Playground Linkhttps://go.dev/play/p/2ytafWQffcDDescriptionI'm trying to insert products, one by one, to a category...

Gorm Why is the MySQL insert data string truncated after it is too long

GORM Playground Linkhttps://github.com/go-gorm/playground/pull/1DescriptionFor example, varchar (12), When I insert more...

Gorm create batch returning

err := tx.Clauses( clause.Returning{Columns: []clause.Column{{Name: "user_group_id"}}}, clause.OnConflict{...

Gorm 建议加入乐观锁功能

乐观锁是一个有用且常用的功能 , 建议GORM 加入此功能建议将 https://github.com/go-gorm/optimisticlock 整合。另外:也建议 在软删除上增加 使用 0,1 表示是否删除(整合 https://g...

Gorm Adding default:NULL to a Belongs To field ends up generating invalid SQL for Update Queries

GORM Playground Linkhttps://github.com/go-gorm/playground/pull/546/filesDescriptionI just ran into this bug when I did s...

Gorm Many-to-Many and attributes

Hi !I was wondering what would be the best way to create a many-to-many relationship with extra attributes ? For instanc...

Gorm How to desensitize mail, mobile, and name data 【如何让mail、mobile、name数据脱敏】

Is it possible to add a certain parameter in the struct so that the data can be encrypted and obtained, for example, the...

Gorm Belongs-To Association without a Foreign Key

Your QuestionI have a model (e.g. User) with a belongs-to association to another model (e.g. FavoriteBook). A User has a...

Gorm Byte enum error on upgrade from gorm v1.22.3 to v1.24.2

Your QuestionI've upgraded from gorm v1.22.3 to v1.24.2, but when I tried to insert an item using an "enum" byte/string ...

Gorm Object created and fetched do not match

GORM Playground Linkhttps://github.com/go-gorm/playground/pull/533DescriptionI created user object and then called it fr...

Gorm postgres timestamp without time zone: time isn't converted properly to UTC

GORM Playground Linkhttps://github.com/go-gorm/playground/pull/544DescriptionWhen* client has non-UTC time zone;* and po...

Gorm Oracle driver for GORM

How to connect Oracle db with GORM?Comment From: github-actions[bot]The issue has been automatically marked as stale as ...
上一页 下一页
.