protected function processInsert($row, $context)
    {
        if ($row instanceof InsertFromSelect) {
            return $this->processInsertFromSelect($row, $context);
        }

        $newRow = [];
        foreach ($row as $column => $value) {
            $column = $this->processColumnName($column, $context);
            $newRow[$column] = $this->processValueOrSubQuery($value, $context);
        }

        return $newRow;
    }
protected function processInsert($row, $context)
    {
        if ($row instanceof InsertFromSelect) {
            return $this->processInsertFromSelect($row, $context);
        }

        $newRow = [];
        foreach ($row as $column => $value) {
            $column = $this->processColumnName($column, $context);
            $newRow[$column] = $this->processValueOrSubQuery($value, $context);
        }

        return $newRow;
    }
protected function processInsert ( $ row , $ context ) { if ( $ row instanceof InsertFromSelect ) { return $ this -> processInsertFromSelect ( $ row , $ context ) ; } $ newRow = [ ] ; foreach ( $ row as $ column => $ value ) { $ column = $ this -> processColumnName ( $ column , $ context ) ; $ newRow [ $ column ] = $ this -> processValueOrSubQuery ( $ value , $ context ) ; } return $ newRow ; }
Processes a single insert statement.

@param mixed[]|Query[]|StatementInterface[]|InsertFromSelect $row
@param mixed $context The processing context
@return mixed[]|Query[]|StatementInterface[]|InsertFromSelect
Processes a single insert statement .