Closed Jacyking closed 7 months ago
All modified and coverable lines are covered by tests :white_check_mark:
Comparison is base (
cf53076
) 39.88% compared to head (47cedd8
) 40.00%.
:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
REGISTER_CONFLICT_KEY 这个是PG里面专有的吗,我还不知道这个干啥的,为啥要加这个,在pr描述里加一段文字介绍吧,
REGISTER_CONFLICT_KEY 这个是PG里面专有的吗,我还不知道这个干啥的,为啥要加这个,在pr描述里加一段文字介绍吧,
[ WITH [ RECURSIVE ] with_query [, ...] ] INSERT INTO table_name [ ( column_name [, ...] ) ] { DEFAULT VALUES | VALUES ( { expression | DEFAULT } [, ...] ) [, ...] | query } [ ON CONFLICT [ ( { column_name_index | ( expression_index ) } [ COLLATE collation ] [ opclass ] [, ...] [ WHERE index_predicate ] ) ] { IGNORE | UPDATE SET { column_name = { expression | DEFAULT } | ( column_name [, ...] ) = ( { expression | DEFAULT } [, ...] ) } [, ...] [ WHERE condition ] } ] [ RETURNING * | output_expression [ [ AS ] output_name ] [, ...] ]
https://wiki.postgresql.org/wiki/UPSERT#SQLite:_..._ONCONFLICT..._.2FINSERT.2FUPDATE...OR...
REGISTER_AUTO_KEY(person, id) used to set which field is the auto increment key;
for PG:
REGISTER_CONFLICT_KEY(student, code) only for PG: insert with update, more details: https://www.postgresqltutorial.com/postgresql-tutorial/postgresql-upsert/