Table
extends AbstractFormatter
in package
Schema table formatter class
Tags
Table of Contents
Methods
- createConstraints() : string
- Create constraints
- createIndices() : string
- Create indices
- createPgsqlSequences() : string
- Create PostgreSQL sequences
- createSequences() : string
- Create sequences
- formatEndOfTable() : string
- Format end of table
- formatPrimarySchema() : string
- Format primary key schema
- unquoteId() : string
- Un-quote identifier
Methods
createConstraints()
Create constraints
public
static createConstraints(array<string|int, mixed> $constraints, string $table, AbstractStructure $schema) : string
Parameters
- $constraints : array<string|int, mixed>
- $table : string
- $schema : AbstractStructure
Return values
stringcreateIndices()
Create indices
public
static createIndices(array<string|int, mixed> $indices, string $table, AbstractStructure $schema) : string
Parameters
- $indices : array<string|int, mixed>
- $table : string
- $schema : AbstractStructure
Return values
stringcreatePgsqlSequences()
Create PostgreSQL sequences
public
static createPgsqlSequences(array<string|int, mixed> $increment, string $table, array<string|int, mixed> $columns) : string
Parameters
- $increment : array<string|int, mixed>
- $table : string
- $columns : array<string|int, mixed>
Return values
stringcreateSequences()
Create sequences
public
static createSequences(string $dbType, array<string|int, mixed> $increment, string $table, array<string|int, mixed> $columns) : string
Parameters
- $dbType : string
- $increment : array<string|int, mixed>
- $table : string
- $columns : array<string|int, mixed>
Return values
stringformatEndOfTable()
Format end of table
public
static formatEndOfTable(string $dbType[, string|null $engine = null ][, string|null $charset = null ][, int|null $increment = null ]) : string
Parameters
- $dbType : string
- $engine : string|null = null
- $charset : string|null = null
- $increment : int|null = null
Return values
stringformatPrimarySchema()
Format primary key schema
public
static formatPrimarySchema(string $dbType, array<string|int, mixed> $primary) : string
Parameters
- $dbType : string
- $primary : array<string|int, mixed>
Return values
stringunquoteId()
Un-quote identifier
public
static unquoteId(string $identifier) : string
Parameters
- $identifier : string