Merge pull request #363 from SeaQL/issues/362

`Delete::many()` with `TableRef`
This commit is contained in:
Chris Tsang 2021-12-09 10:09:43 +08:00 committed by GitHub
commit 18ed683712
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3,7 +3,7 @@ use crate::{
QueryFilter, QueryTrait,
};
use core::marker::PhantomData;
use sea_query::{DeleteStatement, IntoIden};
use sea_query::DeleteStatement;
/// Defines the structure for a delete operation
#[derive(Clone, Debug)]
@ -94,7 +94,7 @@ impl Delete {
{
DeleteMany {
query: DeleteStatement::new()
.from_table(entity.into_iden())
.from_table(entity.table_ref())
.to_owned(),
entity: PhantomData,
}