예제 #1
0
파일: Select.php 프로젝트: jbzoo/sqlbuilder
 /**
  * @return string
  * @throws Exception
  */
 public function __toString()
 {
     if (!isset($this->_blocks['select'])) {
         $this->select('*');
     }
     return $this->_explain . 'SELECT ' . parent::__toString();
 }
예제 #2
0
파일: Delete.php 프로젝트: jbzoo/sqlbuilder
 /**
  * @return string
  * @throws Exception
  */
 public function __toString()
 {
     return 'DELETE ' . parent::__toString();
 }
예제 #3
0
파일: Insert.php 프로젝트: jbzoo/sqlbuilder
 /**
  * @return string
  * @throws Exception
  */
 public function __toString()
 {
     return $this->_type . ' ' . parent::__toString();
 }
예제 #4
0
파일: Update.php 프로젝트: jbzoo/sqlbuilder
 /**
  * @return string
  * @throws Exception
  */
 public function __toString()
 {
     return 'UPDATE ' . parent::__toString();
 }