\Pop\Db\Sql\Schema\FormatterTable

Schema table formatter class

Summary

Methods
Properties
Constants
unquoteId()
createPgsqlSequences()
formatPrimarySchema()
formatEndOfTable()
createSequences()
createIndices()
createConstraints()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

unquoteId()

unquoteId(string  $identifier) : string

Un-quote identifier

Parameters

string $identifier

Returns

string

createPgsqlSequences()

createPgsqlSequences(array  $increment, string  $table, array  $columns) : string

Create PostgreSQL sequences

Parameters

array $increment
string $table
array $columns

Returns

string

formatPrimarySchema()

formatPrimarySchema(string  $dbType, array  $primary) : string

Format primary key schema

Parameters

string $dbType
array $primary

Returns

string

formatEndOfTable()

formatEndOfTable(string  $dbType, string  $engine = null, string  $charset = null, integer  $increment = null) : string

Format end of table

Parameters

string $dbType
string $engine
string $charset
integer $increment

Returns

string

createSequences()

createSequences(string  $dbType, array  $increment, string  $table, array  $columns) : string

Create sequences

Parameters

string $dbType
array $increment
string $table
array $columns

Returns

string

createIndices()

createIndices(array  $indices, string  $table, \Pop\Db\Sql\Schema\AbstractStructure  $schema) : string

Create indices

Parameters

array $indices
string $table
\Pop\Db\Sql\Schema\AbstractStructure $schema

Returns

string

createConstraints()

createConstraints(array  $constraints, string  $table, \Pop\Db\Sql\Schema\AbstractStructure  $schema) : string

Create constraints

Parameters

array $constraints
string $table
\Pop\Db\Sql\Schema\AbstractStructure $schema

Returns

string