예제 #1
0
 /**
  * create sql string
  *
  * @return string
  */
 public function fetch()
 {
     $content = isset($this->table) ? sprintf($this->patterns['create'], $this->table) : '';
     foreach (Blueprint::getCommand() as $command) {
         $content .= $command->rende();
     }
     $content = rtrim($content, ',');
     $content .= sprintf($this->patterns['end'], $this->charset);
     return $content;
 }