| package |
jelix |
|---|---|
| subpackage |
db_driver |
__construct(string $name, \jDbSchema $schema)
_alterColumn(\jDbColumn $old, \jDbColumn $new)
_createConstraint(\jDbConstraint $constraint)
_dropConstraint(\jDbConstraint $constraint)
_getSqlColumnsList(\jDbConnection $conn, array &$columns)
_loadColumns()
_loadIndexesAndKeys()
_loadReferences()
_loadTableDefinition()
_replaceConstraint(\jDbConstraint $oldConstraint, \jDbConstraint $newConstraint)
_splitColumnsName( $sqlList)
_updateColumnInConstraintsAndIndexes( $colName, &$newIndexes, &$newReferences, &$newPrimaryKey, &$newUniqueKeys, integer $mode, $newColName = null)
integer1:rename, 2:drop
alterColumn(\jDbColumn $column, $oldName = '')
alterReference(\jDbReference $reference)
dropColumn( $name)
dropIndex( $indexName)
dropPrimaryKey()
dropReference( $refName)
dropUniqueKey( $indexName)
getColumn( $name, $forChange = false)
getName()
getPrimaryKey() : \jDbPrimaryKey|false
getReference( $refName) : \jDbReference|null
getReferences() : array<mixed,\jDbReference>
getUniqueKey( $name) : \jDbUniqueKey|null
getUniqueKeys() : array<mixed,\jDbUniqueKey>
name : string
| var |
the name of the table |
|---|
string
schema : \jDbSchema
columns : \jDbColumn[].
| var |
null means "columns are not loaded" |
|---|
\jDbColumn[].
primaryKey : \jDbPrimaryKey
| var |
the primary key. null means "primary key is not loaded". false means : no primary key |
|---|
\jDbPrimaryKey
uniqueKeys : array<mixed,\jDbUniqueKey>
indexes : array<mixed,\jDbIndex>
references : array<mixed,\jDbReference>