You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: delete.rs
    path of file: ./repos/FnckSQL/src/execution/volcano/dml
    
    the code of the file until where you have to start completion: use crate::catalog::TableName;
use crate::errors::DatabaseError;
use crate::execution::volcano::dql::projection::Projection;
use crate:
    
    async fn _execute<T: Transaction>(self, transaction: &mut T) {
        let Delete {
            table_name,
            mut input,
        } = self;
        let schema = input.output_schema().clone();
        let table = transaction
            .table(table_name.clone())
            .cloned()
            .ok_or(DatabaseError::TableNotFound)?;
        let mut tuple_ids = Vec::new();
        let mut indexes: HashMap<IndexId, Value> = HashMap::new();

        #[for_await]
        for tuple in build_read(input, transaction) {
            let tuple: Tuple = tuple?;

            for index_meta in table.indexes() {
                if let Some(Value {
                    exprs, value_rows, ..
                }) = indexes.get_mut(&index_meta.id)
                {
                    value_rows.push(Projection::projection(&tuple, exprs, &schema)?);
                } else {
                    let exprs = index_meta.column_exprs(&table)?;
                    let values = Projection::projection(&tuple, &exprs, &schema)?;

                    indexes.insert(
                        index_meta.id,
                        Value {
                            exprs,
                            value_rows: vec![values],
                            index_ty: index_meta.ty,
                        },
                    );
                }
            }
            tuple_ids.push(tuple.id.unwrap());
        }
        for (
            index_id,
            Value {
                value_rows,
                index_ty,
                ..
            },
        ) in indexes
        {
            for (i, values) in value_rows.into_iter().enumerate() {
                transaction.del_index(
                    &table_name,
                    &Index::new(index_id, &values, index_ty),
                    Some(&tuple_ids[i]),
                )?;
            }
        }
        for tuple_id in tuple_ids {
            transaction.delete(&table_name, tuple_id)?;
        }
    }