fmt
This commit is contained in:
parent
9daabb19ee
commit
5e04b3b551
@ -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()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user