This commit is contained in:
Billy Chan 2024-06-19 20:45:39 +08:00
parent 9daabb19ee
commit 5e04b3b551
No known key found for this signature in database
GPG Key ID: 45461E52F22E0279

View File

@ -227,15 +227,15 @@ where
} }
/// Set ON CONFLICT do nothing, but with MySQL specific polyfill. /// Set ON CONFLICT do nothing, but with MySQL specific polyfill.
/// ///
/// ``` /// ```
/// use sea_orm::{entity::*, query::*, sea_query::OnConflict, tests_cfg::cake, DbBackend}; /// use sea_orm::{entity::*, query::*, sea_query::OnConflict, tests_cfg::cake, DbBackend};
/// ///
/// let orange = cake::ActiveModel { /// let orange = cake::ActiveModel {
/// id: ActiveValue::set(2), /// id: ActiveValue::set(2),
/// name: ActiveValue::set("Orange".to_owned()), /// name: ActiveValue::set("Orange".to_owned()),
/// }; /// };
/// ///
/// assert_eq!( /// assert_eq!(
/// cake::Entity::insert(orange.clone()) /// cake::Entity::insert(orange.clone())
/// .on_conflict_do_nothing() /// .on_conflict_do_nothing()