final class TableDefinitionClauses
Restricted visibility: declared "@visibility root". Code outside that scope must not name this declaration.

Table definition clauses operations for PostgreSQL statement.

Methods§

public function extractCreateTableName(string $sql): ?string
public function hasIfNotExists(string $sql): bool

Check if CREATE TABLE has IF NOT EXISTS.

Parameters

$sqlstring

Returns

bool
Test cases 1
Called from 1
Calls 2
public function hasCreateTableAsSelect(string $sql): bool

Check if CREATE TABLE has AS SELECT.

Parameters

$sqlstring

Returns

bool
Test cases 1
Called from 1
Calls 2
public function extractCreateTableSelectSql(string $sql): ?string

Extract the SELECT SQL from CREATE TABLE ... AS SELECT.

Parameters

$sqlstring

Returns

?string
Test cases 1
Called from 1
Calls 3
public function hasCreateTableLike(string $sql): bool

Check if CREATE TABLE has LIKE clause.

Parameters

$sqlstring

Returns

bool
Test cases 1
Called from 1
Calls 2
public function extractCreateTableLikeSource(string $sql): ?string
public function extractDropTableName(string $sql): ?string
public function hasDropTableIfExists(string $sql): bool

Check if DROP TABLE has IF EXISTS.

Parameters

$sqlstring

Returns

bool
Test cases 1
Called from 1
Calls 2
public function extractAlterTableName(string $sql): ?string

Test cases 27§

Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.

Dedicated tests 10
Other tests reaching this symbol 17

Relations§

Instantiated in 11
Method calls 11