go-gorm / go-gorm/cli

同步支持 GORM Save 方法

Open
#43 0 comments 0 reactions 1 assignee Claimed by @jinzhu View on GitHub
Dominant language
Go
Stars
108
Forks
15
PR merge metrics
No merged PRs in 30d

Description

## Describe the feature

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

希望可以同步支持

#35

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

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

## Motivation

## Related Issues

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.