Update many ActiveModel ``` use sea_orm::{entity::*, query::*, sea_query::Expr, tests_cfg::fruit, DbBackend}; assert_eq!( Update::many(fruit::Entity) .col_expr(fruit::Column::Name, Expr::value("Golden Apple")) .filter(fruit::Column::Name.contains("Apple")) .build(DbBackend::Postgres) .to_string(), r#"UPDATE "fruit" SET "name" = 'Golden Apple' WHERE "fruit"."name" LIKE '%Apple%'"#, ); ```
(entity: E)
| 75 | /// ); |
| 76 | /// ``` |
| 77 | pub fn many<E>(entity: E) -> UpdateMany<E> |
| 78 | where |
| 79 | E: EntityTrait, |
| 80 | { |
| 81 | UpdateMany { |
| 82 | query: UpdateStatement::new().table(entity.table_ref()).to_owned(), |
| 83 | entity: PhantomData, |
| 84 | } |
| 85 | } |
| 86 | } |
| 87 | |
| 88 | impl<A> UpdateOne<A> |