示例#1
0
 public function compile($db = NULL)
 {
     parent::compile($db);
     if (!empty($this->_outfile)) {
         $outfile = ' INTO OUTFILE \'' . $this->_outfile . '\'' . ' FIELDS TERMINATED BY ","' . ' OPTIONALLY ENCLOSED BY \'"\'' . ' ESCAPED BY \'"\'' . ' LINES TERMINATED BY "\\r\\n"';
         $this->_sql .= $outfile;
         $this->_sql;
     }
     return $this->_sql;
 }
示例#2
0
 /**
  * Resets the query builder to an empty state.
  *
  * The query type and model is not reset.
  *
  * @return  $this
  */
 public function reset()
 {
     parent::reset();
     $this->_set = $this->_columns = $this->_values = array();
     $this->_result = NULL;
     // Re-register the model
     $this->_register_model();
     return $this;
 }