Skip to content

同步支持 GORM Save 方法 #43

@shuqingzai

Description

@shuqingzai

Describe the feature

gorm 有 Save 方法: https://github.com/go-gorm/gorm/blob/4380dd6dd1a56b7438cec1f4c5a786d006a2c29e/finisher_api.go#L75

希望可以同步支持

#35

目前使用如下代码,只能更新单条数据,因为 create 限制了

err := gorm.G[Language](DB, clause.OnConflict{DoNothing: true}).Create(ctx, &lang)

Motivation

Related Issues

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions