Comment
This commit is contained in:
parent
ebbfc0f5be
commit
8064097639
@ -149,10 +149,10 @@ assert_eq!(format!("{}", DisplayTea::BreakfastTea), "Breakfast Tea");
|
||||
```
|
||||
* Added `UpdateMany::exec_with_returning()` https://github.com/SeaQL/sea-orm/pull/1677
|
||||
```rust
|
||||
Entity::update_many()
|
||||
let models: Vec<Model> = Entity::update_many()
|
||||
.col_expr(Column::Values, Expr::expr(..))
|
||||
.exec_with_returning(db)
|
||||
.await
|
||||
.await?;
|
||||
```
|
||||
* Supporting `default_expr` in `DeriveEntityModel` https://github.com/SeaQL/sea-orm/pull/1474
|
||||
```rust
|
||||
|
@ -82,7 +82,7 @@ where
|
||||
}
|
||||
}
|
||||
|
||||
/// Execute an insert operation and return the inserted model (use `RETURNING` syntax if database supported)
|
||||
/// Execute an insert operation and return the inserted model (use `RETURNING` syntax if supported)
|
||||
pub async fn exec_with_returning<'a, C>(
|
||||
self,
|
||||
db: &'a C,
|
||||
@ -141,7 +141,7 @@ where
|
||||
Inserter::<A>::new(self.primary_key, self.query).exec_without_returning(db)
|
||||
}
|
||||
|
||||
/// Execute an insert operation and return the inserted model (use `RETURNING` syntax if database supported)
|
||||
/// Execute an insert operation and return the inserted model (use `RETURNING` syntax if supported)
|
||||
pub fn exec_with_returning<'a, C>(
|
||||
self,
|
||||
db: &'a C,
|
||||
@ -190,7 +190,7 @@ where
|
||||
exec_insert_without_returning(self.query, db)
|
||||
}
|
||||
|
||||
/// Execute an insert operation and return the inserted model (use `RETURNING` syntax if database supported)
|
||||
/// Execute an insert operation and return the inserted model (use `RETURNING` syntax if supported)
|
||||
pub fn exec_with_returning<'a, C>(
|
||||
self,
|
||||
db: &'a C,
|
||||
|
@ -46,7 +46,7 @@ where
|
||||
Updater::new(self.query).exec(db).await
|
||||
}
|
||||
|
||||
/// Execute an update operation and return the updated model (use `RETURNING` syntax if database supported)
|
||||
/// Execute an update operation and return the updated model (use `RETURNING` syntax if supported)
|
||||
///
|
||||
/// # Panics
|
||||
///
|
||||
|
@ -758,7 +758,6 @@ pub async fn linked() -> Result<(), DbErr> {
|
||||
.build(sea_orm::DatabaseBackend::MySql)
|
||||
.to_string(),
|
||||
[
|
||||
// FIXME: This might be faulty!
|
||||
"SELECT `baker`.`id` AS `A_id`,",
|
||||
"`baker`.`name` AS `A_name`,",
|
||||
"`baker`.`contact_details` AS `A_contact_details`,",
|
||||
|
Loading…
x
Reference in New Issue
Block a user