|
| isInt ($fieldType) |
|
| __construct () |
|
| setDatabaseWrapper (AbstractDbWrapper $wrapper) |
|
| setTablesToCreate (array $tables) |
|
| createDatabase ($name) |
|
| selectDatabase ($name) |
|
| createTable ($name, $fieldsAttributes, $attributes=[]) |
|
| addKey ($tableName, $fieldNames, $type='PRIMARY') |
|
| addForeignKey ($tableName, $fkFieldName, $referencesTableName, $referencesFieldName, $fkName=null, $onDelete='CASCADE', $onUpdate='NO ACTION') |
|
| addAutoInc ($tableName, $fieldName, $fieldInfos, $value=1) |
|
| addField ($tableName, $fieldName, $fieldAttributes) |
|
| modifyField ($tableName, $fieldName, $fieldAttributes) |
|
| generateField ($fieldAttributes, $forPk=false) |
|
| getSqlScript () |
|
| addManyToMany ($jointableInfos, $targetEntity) |
|
| generateManyToManys () |
|
| hasToCreateTable (string $table) |
|
| getScript () |
|
| __toString () |
|
| setMigrationMode ($migrationMode) |
|
Definition at line 21 of file DbGenerator.php.
◆ __construct()
◆ __toString()
◆ addAutoInc()
addAutoInc |
( |
|
$tableName, |
|
|
|
$fieldName, |
|
|
|
$fieldInfos, |
|
|
|
$value = 1 |
|
) |
| |
◆ addField()
addField |
( |
|
$tableName, |
|
|
|
$fieldName, |
|
|
|
$fieldAttributes |
|
) |
| |
◆ addForeignKey()
addForeignKey |
( |
|
$tableName, |
|
|
|
$fkFieldName, |
|
|
|
$referencesTableName, |
|
|
|
$referencesFieldName, |
|
|
|
$fkName = null , |
|
|
|
$onDelete = 'CASCADE' , |
|
|
|
$onUpdate = 'NO ACTION' |
|
) |
| |
◆ addKey()
addKey |
( |
|
$tableName, |
|
|
|
$fieldNames, |
|
|
|
$type = 'PRIMARY' |
|
) |
| |
◆ addManyToMany()
addManyToMany |
( |
|
$jointableInfos, |
|
|
|
$targetEntity |
|
) |
| |
◆ addOrUpdateField()
addOrUpdateField |
( |
|
$tableName, |
|
|
|
$fieldName, |
|
|
|
$fieldAttributes, |
|
|
|
$part = 'addFieldMask' |
|
) |
| |
|
protected |
◆ addScript()
addScript |
( |
|
$key, |
|
|
|
$script |
|
) |
| |
|
protected |
◆ checkConstraintName()
checkConstraintName |
( |
|
$name | ) |
|
|
protected |
◆ checkFieldAttributes()
checkFieldAttributes |
( |
|
$fieldAttributes, |
|
|
|
$forPk = false |
|
) |
| |
|
protected |
◆ createDatabase()
◆ createTable()
createTable |
( |
|
$name, |
|
|
|
$fieldsAttributes, |
|
|
|
$attributes = [] |
|
) |
| |
◆ generateField()
generateField |
( |
|
$fieldAttributes, |
|
|
|
$forPk = false |
|
) |
| |
◆ generateFields()
generateFields |
( |
|
$fieldsAttributes | ) |
|
|
protected |
◆ generateManyToMany()
generateManyToMany |
( |
|
$joinTable, |
|
|
|
$infos |
|
) |
| |
|
protected |
◆ generateManyToManys()
◆ getScript()
◆ getSqlScript()
◆ hasToCreateTable()
hasToCreateTable |
( |
string |
$table | ) |
|
◆ isInt()
◆ modifyField()
modifyField |
( |
|
$tableName, |
|
|
|
$fieldName, |
|
|
|
$fieldAttributes |
|
) |
| |
◆ replaceArrayMask()
replaceArrayMask |
( |
|
$keyValues, |
|
|
|
$mask |
|
) |
| |
|
protected |
◆ replaceMask()
replaceMask |
( |
|
$key, |
|
|
|
$value, |
|
|
|
$mask |
|
) |
| |
|
protected |
◆ selectDatabase()
◆ setDatabaseWrapper()
◆ setMigrationMode()
setMigrationMode |
( |
|
$migrationMode | ) |
|
◆ setTablesToCreate()
setTablesToCreate |
( |
array |
$tables | ) |
|
◆ $addFieldMask
◆ $alterTableAddKey
◆ $alterTableMask
◆ $autoIncMask
◆ $constraintNames
◆ $createDatabaseMask
◆ $createTableMask
◆ $defaultType
◆ $fieldMask
◆ $fieldTypes
◆ $foreignKeyMask
◆ $manyToManys
◆ $migrationMode
◆ $modifyFieldMask
◆ $nameProtection
◆ $selectDbMask
◆ $sqlScript
◆ $tablesToCreate
The documentation for this class was generated from the following file:
- C:/Users/myadd/Documents/GitHub/ubiquity-doc-api/vendor/phpmv/ubiquity-dev/src/Ubiquity/db/reverse/DbGenerator.php