message: Finish migrating execute.rs, remove all comments
diff: @@ -114,86 +114,3 @@ pub fn execute<T: 'static + Debug>(
  _ => Err(ExecuteError::QueryNotSupported.into()),
  }
  }
  -
  -/*
  -pub fn execute<T: 'static + Debug>(
  - storage: &dyn Store<T>,
  - sql_query: &SqlQuery,
  -) -> Result<Payload> {
  - match sql_query {
  - SqlQuery::CreateTable(statement) => {
  - storage.set_schema(statement)?;
  -
  - Ok(Payload::Create)
  - }
  - SqlQuery::Select(statement) => {
  - let rows = select(storage, statement, None)?.collect::<Result<_>>()?;
  -
  - Ok(Payload::Select(rows))
  - }
  - SqlQuery::Insert(statement) => {
  - let InsertStatement {
  - table: Table {
  - name: table_name, ..
  - },
  - fields: insert_fields,
  - data: insert_data,
  - ..
  - } = statement;
  - let create_fields = storage.get_schema(table_name)?.fields;
  - let key = storage.gen_id(table_name)?;
  - let row = Row::new(create_fields, insert_fields, insert_data)?;
  -
  - let row = storage.set_data(&key, row)?;
  -
  - Ok(Payload::Insert(row))
  - }
  - SqlQuery::Delete(statement) => {
  - let DeleteStatement {
  - table,
  - where_clause,
  - } = statement;
  - let filter = Filter::new(storage, where_clause.as_ref(), None);
  -
  - let columns = fetch_columns(storage, table)?;
  - let num_rows = fetch(storage, table, &columns, filter)?.try_fold::<_, _, Result<_>>(
  - 0,
  - |num: usize, item: Result<(&[Column], T, Row)>| {
  - let (_, key, _) = item?;
  - storage.del_data(&key)?;
  -
  - Ok(num + 1)
  - },
  - )?;
  -
  - Ok(Payload::Delete(num_rows))
  - }
  - SqlQuery::Update(statement) => {
  - let UpdateStatement {
  - table,
  - fields,
  - where_clause,
  - } = statement;
  - let update = Update::new(fields);
  - let filter = Filter::new(storage, where_clause.as_ref(), None);
  - let columns = fetch_columns(storage, table)?;
  -
  - let num_rows = fetch(storage, table, &columns, filter)?
  - .map(|item| {
  - let (columns, key, row) = item?;
  -
  - Ok((key, update.apply(columns, row)?))
  - })
  - .try_fold::<_, _, Result<_>>(0, |num, item: Result<(T, Row)>| {
  - let (key, row) = item?;
  - storage.set_data(&key, row)?;
  -
  - Ok(num + 1)
  - })?;
  -
  - Ok(Payload::Update(num_rows))
  - }
  - _ => Err(ExecuteError::QueryNotSupported.into()),
  - }
  -}
  -*/
  