Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pgsql ORM不支持save方法 #1767

Merged
merged 30 commits into from
Apr 18, 2022
Merged

pgsql ORM不支持save方法 #1767

merged 30 commits into from
Apr 18, 2022

Conversation

happyinsect
Copy link
Contributor

以pgsql做数据库,save方法提示pgsql不支持save方法。
pgsql已经支持upsert操作:
INSERT INTO table_name(column_list)
VALUES(value_list)
ON CONFLICT target action;

pgsql是否可以加入对upsert语义的支持?

@codecov-commenter
Copy link

codecov-commenter commented Apr 18, 2022

Codecov Report

Merging #1767 (f9c9750) into master (5144cc0) will increase coverage by 0.01%.
The diff coverage is 64.06%.

❗ Current head f9c9750 differs from pull request most recent head be77779. Consider uploading reports for the commit be77779 to get more accurate results

@@            Coverage Diff             @@
##           master    #1767      +/-   ##
==========================================
+ Coverage   71.25%   71.26%   +0.01%     
==========================================
  Files         452      457       +5     
  Lines       43348    43479     +131     
==========================================
+ Hits        30887    30987     +100     
- Misses      10482    10507      +25     
- Partials     1979     1985       +6     
Flag Coverage Δ
go-1.15 71.23% <64.06%> (-0.02%) ⬇️
go-1.16 71.24% <64.06%> (+0.01%) ⬆️
go-1.17 71.25% <64.06%> (+0.02%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
encoding/gjson/gjson.go 84.01% <ø> (ø)
errors/gerror/gerror_option.go 0.00% <ø> (ø)
frame/gins/gins_log.go 0.00% <0.00%> (ø)
frame/gins/gins_server.go 0.00% <0.00%> (ø)
net/ghttp/ghttp_server_config.go 61.65% <0.00%> (ø)
util/gconv/gconv.go 83.93% <ø> (+19.42%) ⬆️
util/guid/guid.go 88.23% <0.00%> (-4.08%) ⬇️
frame/gins/gins_database.go 44.13% <33.33%> (-1.26%) ⬇️
errors/gerror/gerror_error.go 61.44% <44.44%> (-4.25%) ⬇️
database/gdb/gdb_core_ctx.go 60.86% <46.15%> (+4.86%) ⬆️
... and 34 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5144cc0...be77779. Read the comment docs.

@gqcn gqcn merged commit be77779 into master Apr 18, 2022
@chaggle chaggle self-requested a review May 16, 2022 14:14
@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Doesn't it seem to be supported now?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants