ILIAS
trunk Revision v11.0_alpha-1761-g6dbbfa7b760
|
Class ilDBPdoManager. More...
Public Member Functions | |
__construct (protected \PDO $pdo, protected \ilDBPdo $db_instance) | |
ilDBPdoManager constructor. More... | |
getQueryUtils () | |
getDBInstance () | |
listTables (?string $database=null) | |
listSequences (?string $database=null) | |
createConstraint (string $table, string $name, array $definition) | |
createSequence (string $seq_name, int $start=1, array $options=[]) | |
alterTable (string $name, array $changes, bool $check) | |
createTable (string $name, array $fields, array $options=[]) | |
getIndexName (string $idx) | |
getSequenceName (string $sqn) | |
listTableFields (string $table) | |
listTableConstraints (string $table) | |
listTableIndexes (string $table) | |
createIndex (string $table, string $name, array $definition) | |
dropIndex (string $table, string $name) | |
dropSequence (string $seq_name) | |
getTableCreationQuery (string $name, array $fields, array $options=[]) | |
dropConstraint (string $table, string $name, bool $primary=false) | |
dropTable (string $name) | |
addForeignKey (string $foreign_key_name, array $field_names, string $table_name, array $reference_field_names, string $reference_table, ?ForeignKeyConstraints $on_update=null, ?ForeignKeyConstraints $on_delete=null) | |
dropForeignKey (string $foreign_key_name, string $table_name) | |
foreignKeyExists (string $foreign_key_name, string $table_name) | |
Protected Member Functions | |
fixSequenceName (string $sqn, bool $check=false) | |
fixIndexName (string $idx) | |
Protected Attributes | |
ilQueryUtils | $query_utils = null |
Class ilDBPdoManager.
Definition at line 25 of file class.ilDBPdoManager.php.
ilDBPdoManager::__construct | ( | protected \PDO | $pdo, |
protected \ilDBPdo | $db_instance | ||
) |
ilDBPdoManager::addForeignKey | ( | string | $foreign_key_name, |
array | $field_names, | ||
string | $table_name, | ||
array | $reference_field_names, | ||
string | $reference_table, | ||
?ForeignKeyConstraints | $on_update = null , |
||
?ForeignKeyConstraints | $on_delete = null |
||
) |
string[] | $field_names |
string[] | $reference_field_names |
Definition at line 476 of file class.ilDBPdoManager.php.
References null.
ilDBPdoManager::alterTable | ( | string | $name, |
array | $changes, | ||
bool | $check | ||
) |
Implements ilDBManager.
Definition at line 179 of file class.ilDBPdoManager.php.
References null.
ilDBPdoManager::createConstraint | ( | string | $table, |
string | $name, | ||
array | $definition | ||
) |
Implements ilDBManager.
Definition at line 112 of file class.ilDBPdoManager.php.
Referenced by ilDBPdo\addUniqueConstraint().
ilDBPdoManager::createIndex | ( | string | $table, |
string | $name, | ||
array | $definition | ||
) |
Implements ilDBManager.
Definition at line 409 of file class.ilDBPdoManager.php.
ilDBPdoManager::createSequence | ( | string | $seq_name, |
int | $start = 1 , |
||
array | $options = [] |
||
) |
Implements ilDBManager.
Definition at line 133 of file class.ilDBPdoManager.php.
References ilDBConstants\SEQUENCE_COLUMNS_NAME.
ilDBPdoManager::createTable | ( | string | $name, |
array | $fields, | ||
array | $options = [] |
||
) |
Definition at line 289 of file class.ilDBPdoManager.php.
References getQueryUtils().
ilDBPdoManager::dropConstraint | ( | string | $table, |
string | $name, | ||
bool | $primary = false |
||
) |
Implements ilDBManager.
Definition at line 450 of file class.ilDBPdoManager.php.
References getDBInstance().
ilDBPdoManager::dropForeignKey | ( | string | $foreign_key_name, |
string | $table_name | ||
) |
Definition at line 513 of file class.ilDBPdoManager.php.
ilDBPdoManager::dropIndex | ( | string | $table, |
string | $name | ||
) |
Implements ilDBManager.
Definition at line 427 of file class.ilDBPdoManager.php.
ilDBPdoManager::dropSequence | ( | string | $seq_name | ) |
Implements ilDBManager.
Definition at line 435 of file class.ilDBPdoManager.php.
ilDBPdoManager::dropTable | ( | string | $name | ) |
$name | string |
Implements ilDBManager.
Definition at line 464 of file class.ilDBPdoManager.php.
References getDBInstance().
|
protected |
Definition at line 398 of file class.ilDBPdoManager.php.
References ilDBPdoFieldDefinition\INDEX_FORMAT.
Referenced by listTableConstraints(), and listTableIndexes().
|
protected |
Definition at line 69 of file class.ilDBPdoManager.php.
References ilDBConstants\SEQUENCE_FORMAT.
Referenced by listSequences().
ilDBPdoManager::foreignKeyExists | ( | string | $foreign_key_name, |
string | $table_name | ||
) |
Definition at line 522 of file class.ilDBPdoManager.php.
ilDBPdoManager::getDBInstance | ( | ) |
Definition at line 45 of file class.ilDBPdoManager.php.
Referenced by dropConstraint(), dropTable(), and listTableConstraints().
ilDBPdoManager::getIndexName | ( | string | $idx | ) |
Implements ilDBPdoManagerInterface.
Definition at line 296 of file class.ilDBPdoManager.php.
ilDBPdoManager::getQueryUtils | ( | ) |
Definition at line 36 of file class.ilDBPdoManager.php.
References $query_utils, and null.
Referenced by createTable(), and getTableCreationQuery().
ilDBPdoManager::getSequenceName | ( | string | $sqn | ) |
Implements ilDBPdoManagerInterface.
Definition at line 301 of file class.ilDBPdoManager.php.
ilDBPdoManager::getTableCreationQuery | ( | string | $name, |
array | $fields, | ||
array | $options = [] |
||
) |
Definition at line 445 of file class.ilDBPdoManager.php.
References getQueryUtils().
ilDBPdoManager::listSequences | ( | ?string | $database = null | ) |
Implements ilDBManager.
Definition at line 83 of file class.ilDBPdoManager.php.
References $res, fixSequenceName(), and null.
ilDBPdoManager::listTableConstraints | ( | string | $table | ) |
Implements ilDBManager.
Definition at line 322 of file class.ilDBPdoManager.php.
References fixIndexName(), getDBInstance(), and null.
ilDBPdoManager::listTableFields | ( | string | $table | ) |
Implements ilDBManager.
Definition at line 306 of file class.ilDBPdoManager.php.
References $data.
ilDBPdoManager::listTableIndexes | ( | string | $table | ) |
Implements ilDBManager.
Definition at line 363 of file class.ilDBPdoManager.php.
References fixIndexName(), and null.
ilDBPdoManager::listTables | ( | ?string | $database = null | ) |
Implements ilDBManager.
Definition at line 53 of file class.ilDBPdoManager.php.
Referenced by ilDBPdoMySQL\migrateAllTablesToCollation().
|
protected |
Definition at line 27 of file class.ilDBPdoManager.php.
Referenced by getQueryUtils().