ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Class ilDBPdoManager. More...
Public Member Functions | |||
__construct (\PDO $pdo, ilDBPdo $db_instance) | |||
ilDBPdoManager constructor. More... | |||
getQueryUtils () | |||
getDBInstance () | |||
listTables ($database=null) | |||
listSequences ($database=null) | |||
createConstraint ($table, $name, $definition) | |||
createSequence ($seq_name, $start=1, $options=array()) | |||
alterTable ($name, $changes, $check) | |||
createTable ($name, $fields, $options=array()) | |||
getIndexName ($idx) | |||
getSequenceName ($sqn) | |||
listTableFields ($table) | |||
listTableConstraints ($table) | |||
listTableIndexes ($table) | |||
createIndex ($table, $name, $definition) | |||
dropIndex ($table, $name) | |||
dropSequence ($table_name) | |||
getTableCreationQuery ($name, $fields, $options=array()) | |||
dropConstraint ($table, $name, $primary=false) | |||
dropTable ($name) | |||
| |||
Protected Member Functions | |
fixSequenceName ($sqn, $check=false) | |
fixIndexName ($idx) | |
Protected Attributes | |
$pdo | |
$db_instance | |
$query_utils | |
Class ilDBPdoManager.
Definition at line 9 of file class.ilDBPdoManager.php.
ilDBPdoManager::__construct | ( | \PDO | $pdo, |
ilDBPdo | $db_instance | ||
) |
ilDBPdoManager constructor.
\PDO | $pdo | |
\ilDBPdo | $db_instance |
Definition at line 28 of file class.ilDBPdoManager.php.
References $db_instance, and $pdo.
ilDBPdoManager::alterTable | ( | $name, | |
$changes, | |||
$check | |||
) |
$name | |
$changes | |
$check |
Implements ilDBManager.
Definition at line 217 of file class.ilDBPdoManager.php.
References $db_instance, $name, and $query.
Referenced by ilDBPdoManagerPostgres\dropDatabase().
ilDBPdoManager::createConstraint | ( | $table, | |
$name, | |||
$definition | |||
) |
$table | |
$name | |
$definition |
Implements ilDBManager.
Definition at line 138 of file class.ilDBPdoManager.php.
References $db_instance, $name, $query, and $table.
ilDBPdoManager::createIndex | ( | $table, | |
$name, | |||
$definition | |||
) |
$table | |
$name | |
$definition |
Implements ilDBManager.
Definition at line 481 of file class.ilDBPdoManager.php.
ilDBPdoManager::createSequence | ( | $seq_name, | |
$start = 1 , |
|||
$options = array() |
|||
) |
$seq_name | ||
int | $start | |
array | $options |
Implements ilDBManager.
Definition at line 166 of file class.ilDBPdoManager.php.
References PHPMailer\PHPMailer\$options, $query, $start, $type, and ilDBConstants\SEQUENCE_COLUMNS_NAME.
ilDBPdoManager::createTable | ( | $name, | |
$fields, | |||
$options = array() |
|||
) |
$name | ||
$fields | ||
array | $options |
Definition at line 317 of file class.ilDBPdoManager.php.
References $name, PHPMailer\PHPMailer\$options, and getQueryUtils().
ilDBPdoManager::dropConstraint | ( | $table, | |
$name, | |||
$primary = false |
|||
) |
$table | ||
$name | ||
bool | $primary |
Implements ilDBManager.
Definition at line 545 of file class.ilDBPdoManager.php.
References $name, $query, $table, and getDBInstance().
ilDBPdoManager::dropIndex | ( | $table, | |
$name | |||
) |
$table | |
$name |
Implements ilDBManager.
Definition at line 505 of file class.ilDBPdoManager.php.
ilDBPdoManager::dropSequence | ( | $table_name | ) |
$table_name |
Implements ilDBManager.
Definition at line 518 of file class.ilDBPdoManager.php.
ilDBPdoManager::dropTable | ( | $name | ) |
$name | Table-name |
Implements ilDBManager.
Definition at line 563 of file class.ilDBPdoManager.php.
References $name, and getDBInstance().
|
protected |
$idx |
Definition at line 463 of file class.ilDBPdoManager.php.
References ilDBPdoFieldDefinition\INDEX_FORMAT.
Referenced by listTableConstraints(), and listTableIndexes().
|
protected |
$sqn | ||
bool | $check |
Definition at line 89 of file class.ilDBPdoManager.php.
References ilDBConstants\SEQUENCE_FORMAT.
Referenced by listSequences(), and ilDBPdoManagerPostgres\listSequences().
ilDBPdoManager::getDBInstance | ( | ) |
Definition at line 57 of file class.ilDBPdoManager.php.
References $db_instance.
Referenced by ilDBPdoManagerPostgres\dropConstraint(), dropConstraint(), ilDBPdoManagerPostgres\dropIndex(), dropTable(), and listTableConstraints().
ilDBPdoManager::getIndexName | ( | $idx | ) |
$idx |
Implements ilDBPdoManagerInterface.
Definition at line 335 of file class.ilDBPdoManager.php.
Referenced by ilDBPdoManagerPostgres\dropConstraint(), ilDBPdoManagerPostgres\dropDatabase(), and ilDBPdoManagerPostgres\dropIndex().
ilDBPdoManager::getQueryUtils | ( | ) |
Definition at line 44 of file class.ilDBPdoManager.php.
References $query_utils.
Referenced by createTable(), and getTableCreationQuery().
ilDBPdoManager::getSequenceName | ( | $sqn | ) |
$sqn |
Implements ilDBPdoManagerInterface.
Definition at line 345 of file class.ilDBPdoManager.php.
ilDBPdoManager::getTableCreationQuery | ( | $name, | |
$fields, | |||
$options = array() |
|||
) |
$name | ||
$fields | ||
array | $options |
Definition at line 533 of file class.ilDBPdoManager.php.
References $name, PHPMailer\PHPMailer\$options, and getQueryUtils().
ilDBPdoManager::listSequences | ( | $database = null | ) |
null | $database |
Implements ilDBManager.
Definition at line 108 of file class.ilDBPdoManager.php.
References $query, $res, $result, and fixSequenceName().
ilDBPdoManager::listTableConstraints | ( | $table | ) |
$table |
Implements ilDBManager.
Definition at line 375 of file class.ilDBPdoManager.php.
References $index, $query, $result, $table, fixIndexName(), and getDBInstance().
ilDBPdoManager::listTableFields | ( | $table | ) |
$table |
Implements ilDBManager.
Definition at line 356 of file class.ilDBPdoManager.php.
References $data, $query, $result, and $table.
ilDBPdoManager::listTableIndexes | ( | $table | ) |
$table |
Implements ilDBManager.
Definition at line 423 of file class.ilDBPdoManager.php.
References $index, $query, $result, $table, and fixIndexName().
ilDBPdoManager::listTables | ( | $database = null | ) |
null | $database |
Implements ilDBManager.
Definition at line 67 of file class.ilDBPdoManager.php.
|
protected |
Definition at line 19 of file class.ilDBPdoManager.php.
Referenced by __construct(), alterTable(), createConstraint(), ilDBPdoManagerPostgres\createDatabase(), ilDBPdoManagerPostgres\createSequence(), ilDBPdoManagerPostgres\dropDatabase(), ilDBPdoManagerPostgres\dropIndex(), ilDBPdoManagerPostgres\dropSequence(), getDBInstance(), ilDBPdoManagerPostgres\listSequences(), ilDBPdoManagerPostgres\listTableConstraints(), ilDBPdoManagerPostgres\listTableFields(), ilDBPdoManagerPostgres\listTableIndexes(), and ilDBPdoManagerPostgres\listTables().
|
protected |
Definition at line 15 of file class.ilDBPdoManager.php.
Referenced by __construct().
|
protected |
Definition at line 38 of file class.ilDBPdoManager.php.
Referenced by ilDBPdoManagerPostgres\getQueryUtils(), and getQueryUtils().