Simplify select_all and delete_all
This commit is contained in:
parent
6b58c3cb9b
commit
f9b874f302
2 changed files with 86 additions and 76 deletions
|
|
@ -86,7 +86,7 @@ impl State {
|
|||
Delete(table_name, maybe_condition) => {
|
||||
let table: &mut Table = self.table_from_name_mut(&table_name)?;
|
||||
|
||||
let rows_affected = table.delete_where(maybe_condition)?;
|
||||
let rows_affected = table.delete_rows_where(maybe_condition)?;
|
||||
Ok(Response::Deleted(rows_affected))
|
||||
},
|
||||
CreateTable(table_name, table_schema) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue