#[non_exhaustive]
pub enum OnInsert {
DuplicateKeyUpdate(Vec<Assignment>),
OnConflict(OnConflict),
}Expand description
Behavior to apply for INSERT when a conflict occurs.
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
ON DUPLICATE KEY UPDATE (MySQL when the key already exists, then execute an update instead)
ON CONFLICT is a PostgreSQL and Sqlite extension