Methods summary
public
|
|
public
CzProject\SqlSchema\Schema
|
|
public
Inlm\SchemaGenerator\Utils\Generator
|
#
addRelationship( string $sourceTable, string $sourceColumn, string $targetTable )
Parameters
- $sourceTable
- $sourceColumn
- $targetTable
Returns
|
public
Inlm\SchemaGenerator\Utils\Generator
|
#
addHasManyTable( string $tableName, $sourceTable, $sourceColumn, $targetTable, $targetColumn )
Parameters
- $tableName
- $sourceTable
- $sourceColumn
- $targetTable
- $targetColumn
Returns
|
public
|
|
public
|
|
public
CzProject\SqlSchema\Table
|
#
createTable( string $tableName, string|null $primaryColumn = NULL )
Parameters
- $tableName
- $primaryColumn
Returns
CzProject\SqlSchema\Table
|
public
CzProject\SqlSchema\Table
|
#
getTable( string $tableName )
Parameters
Returns
CzProject\SqlSchema\Table
|
public
boolean
|
#
hasTable( string $tableName )
Parameters
Returns
boolean
|
public
string|null
|
|
public
boolean
|
|
public
CzProject\SqlSchema\Column
|
#
addColumn( string $tableName, string $columnName, Inlm\SchemaGenerator\DataType $columnType = NULL, string|null $sourceId = NULL )
Parameters
- $tableName
- $columnName
- $columnType
- $sourceId
Returns
CzProject\SqlSchema\Column
|
public
Inlm\SchemaGenerator\DataType |null
|
|
public
Inlm\SchemaGenerator\Utils\Generator
|
#
addIndex( string $tableName, string|string[] $columns, string|null $sourceId = NULL )
Parameters
- $tableName
- $columns
- $sourceId
Returns
|
public
Inlm\SchemaGenerator\Utils\Generator
|
#
addUniqueIndex( string $tableName, string|string[] $columns, string|null $sourceId = NULL )
Parameters
- $tableName
- $columns
- $sourceId
Returns
|
public
Inlm\SchemaGenerator\Utils\Generator
|
#
addPrimaryIndex( string $tableName, string|string[] $columns, string|null $sourceId = NULL )
Parameters
- $tableName
- $columns
- $sourceId
Returns
|
public
boolean
|
|
protected
|
#
addTableIndex( string $tableName, string $type, $columns, $sourceId = NULL )
Parameters
- $tableName
- $type
- $columns
- $sourceId
|
protected
string
|
|
protected
string
|
|