コード例 #1
0
ファイル: Column.php プロジェクト: repo2/query-builder
 /**
  * @param DriverInterface $driver
  * @param string $compiled
  * @return string
  */
 private function compileRegular(DriverInterface $driver, $compiled)
 {
     if (!$this->nullable) {
         $compiled .= ' NOT NULL';
     }
     if (null !== $this->defval) {
         $compiled .= ' DEFAULT "' . $driver->escapeValue($this->defval) . '"';
     }
     return $compiled;
 }