Jsor\Doctrine\PostGIS\Schema\CreateTableSqlGenerator::getCreateTableSQL PHP 메소드

getCreateTableSQL() 공개 메소드

public getCreateTableSQL ( Doctrine\DBAL\Schema\Table $table, array $columns, array $options = [] )
$table Doctrine\DBAL\Schema\Table
$columns array
$options array
    public function getCreateTableSQL(Table $table, array $columns, array $options = array())
    {
        $tableName = $table->getQuotedName($this->platform);
        $sql = $this->_getCreateTableSQL($tableName, $columns, $options);
        if ($this->platform->supportsCommentOnStatement()) {
            foreach ($table->getColumns() as $column) {
                $comment = $this->getColumnComment($column);
                if (null !== $comment && '' !== $comment) {
                    $sql[] = $this->platform->getCommentOnColumnSQL($tableName, $column->getQuotedName($this->platform), $comment);
                }
            }
        }
        return $sql;
    }