ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
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 27 of file class.ilDBPdoManager.php.
References $db_instance, and $pdo.
ilDBPdoManager::alterTable | ( | $name, | |
$changes, | |||
$check | |||
) |
$name | |
$changes | |
$check |
Implements ilDBManager.
Definition at line 208 of file class.ilDBPdoManager.php.
References $db_instance, $query, and array.
Referenced by ilDBPdoManagerPostgres\dropDatabase().
ilDBPdoManager::createConstraint | ( | $table, | |
$name, | |||
$definition | |||
) |
$table | |
$name | |
$definition |
Implements ilDBManager.
Definition at line 131 of file class.ilDBPdoManager.php.
References $db_instance, $query, and array.
ilDBPdoManager::createIndex | ( | $table, | |
$name, | |||
$definition | |||
) |
$table | |
$name | |
$definition |
Implements ilDBManager.
Definition at line 464 of file class.ilDBPdoManager.php.
ilDBPdoManager::createSequence | ( | $seq_name, | |
$start = 1 , |
|||
$options = array() |
|||
) |
$seq_name | ||
int | $start | |
array | $options |
Implements ilDBManager.
Definition at line 158 of file class.ilDBPdoManager.php.
References $options, $query, $start, array, and ilDBConstants\SEQUENCE_COLUMNS_NAME.
ilDBPdoManager::createTable | ( | $name, | |
$fields, | |||
$options = array() |
|||
) |
$name | ||
$fields | ||
array | $options |
Definition at line 307 of file class.ilDBPdoManager.php.
References $options, and getQueryUtils().
ilDBPdoManager::dropConstraint | ( | $table, | |
$name, | |||
$primary = false |
|||
) |
$table | ||
$name | ||
bool | $primary |
Implements ilDBManager.
Definition at line 524 of file class.ilDBPdoManager.php.
References $query, and getDBInstance().
ilDBPdoManager::dropIndex | ( | $table, | |
$name | |||
) |
$table | |
$name |
Implements ilDBManager.
Definition at line 487 of file class.ilDBPdoManager.php.
ilDBPdoManager::dropSequence | ( | $table_name | ) |
$table_name |
Implements ilDBManager.
Definition at line 499 of file class.ilDBPdoManager.php.
ilDBPdoManager::dropTable | ( | $name | ) |
$name | Table-name |
Implements ilDBManager.
Definition at line 541 of file class.ilDBPdoManager.php.
References getDBInstance().
|
protected |
$idx |
Definition at line 447 of file class.ilDBPdoManager.php.
References ilDBPdoFieldDefinition\INDEX_FORMAT.
Referenced by listTableConstraints(), and listTableIndexes().
|
protected |
$sqn | ||
bool | $check |
Definition at line 84 of file class.ilDBPdoManager.php.
References ilDBConstants\SEQUENCE_FORMAT.
Referenced by listSequences(), and ilDBPdoManagerPostgres\listSequences().
ilDBPdoManager::getDBInstance | ( | ) |
Definition at line 54 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 324 of file class.ilDBPdoManager.php.
Referenced by ilDBPdoManagerPostgres\dropConstraint(), ilDBPdoManagerPostgres\dropDatabase(), and ilDBPdoManagerPostgres\dropIndex().
ilDBPdoManager::getQueryUtils | ( | ) |
Definition at line 42 of file class.ilDBPdoManager.php.
References $query_utils.
Referenced by createTable(), and getTableCreationQuery().
ilDBPdoManager::getSequenceName | ( | $sqn | ) |
$sqn |
Implements ilDBPdoManagerInterface.
Definition at line 333 of file class.ilDBPdoManager.php.
ilDBPdoManager::getTableCreationQuery | ( | $name, | |
$fields, | |||
$options = array() |
|||
) |
$name | ||
$fields | ||
array | $options |
Definition at line 513 of file class.ilDBPdoManager.php.
References $options, and getQueryUtils().
ilDBPdoManager::listSequences | ( | $database = null | ) |
null | $database |
Implements ilDBManager.
Definition at line 102 of file class.ilDBPdoManager.php.
References $query, $res, $result, array, and fixSequenceName().
ilDBPdoManager::listTableConstraints | ( | $table | ) |
$table |
Implements ilDBManager.
Definition at line 361 of file class.ilDBPdoManager.php.
References $query, $result, array, fixIndexName(), and getDBInstance().
ilDBPdoManager::listTableFields | ( | $table | ) |
$table |
Implements ilDBManager.
Definition at line 343 of file class.ilDBPdoManager.php.
References $data, $query, $result, and array.
ilDBPdoManager::listTableIndexes | ( | $table | ) |
$table |
Implements ilDBManager.
Definition at line 408 of file class.ilDBPdoManager.php.
References $query, $result, array, and fixIndexName().
ilDBPdoManager::listTables | ( | $database = null | ) |
null | $database |
Implements ilDBManager.
Definition at line 63 of file class.ilDBPdoManager.php.
References $data, $r, and array.
|
protected |
Definition at line 18 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 14 of file class.ilDBPdoManager.php.
Referenced by __construct().
|
protected |
Definition at line 36 of file class.ilDBPdoManager.php.
Referenced by ilDBPdoManagerPostgres\getQueryUtils(), and getQueryUtils().