ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
Class ilDBPdoManager. More...
Public Member Functions | |||
getQueryUtils () | |||
getTableCreationQuery ($name, $fields, $options=array()) | |||
createTable ($name, $fields, $options=array()) | |||
listTables ($database=null) | |||
createDatabase ($name) | |||
dropDatabase ($name) | |||
listTableFields ($table) | |||
listTableIndexes ($table) | |||
listTableConstraints ($table) | |||
createSequence ($seq_name, $start=1, $options=array()) | |||
dropSequence ($seq_name) | |||
dropIndex ($table, $name) | |||
listSequences ($database=null) | |||
dropConstraint ($table, $name, $primary=false) | |||
Public Member Functions inherited from ilDBPdoManager | |||
__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 | |
fixIndexName ($idx) | |
Protected Member Functions inherited from ilDBPdoManager | |
fixSequenceName ($sqn, $check=false) | |
fixIndexName ($idx) | |
Additional Inherited Members | |
Protected Attributes inherited from ilDBPdoManager | |
$pdo | |
$db_instance | |
$query_utils | |
Class ilDBPdoManager.
Definition at line 10 of file class.ilDBPdoManagerPostgres.php.
ilDBPdoManagerPostgres::createDatabase | ( | $name | ) |
$name |
Definition at line 74 of file class.ilDBPdoManagerPostgres.php.
References ilDBPdoManager\$db_instance.
ilDBPdoManagerPostgres::createSequence | ( | $seq_name, | |
$start = 1 , |
|||
$options = array() |
|||
) |
$seq_name | ||
int | $start | |
array | $options |
Implements ilDBManager.
Definition at line 268 of file class.ilDBPdoManagerPostgres.php.
References ilDBPdoManager\$db_instance, and $start.
ilDBPdoManagerPostgres::createTable | ( | $name, | |
$fields, | |||
$options = array() |
|||
) |
$name | ||
$fields | ||
array | $options |
Definition at line 42 of file class.ilDBPdoManagerPostgres.php.
References $options, and getQueryUtils().
ilDBPdoManagerPostgres::dropConstraint | ( | $table, | |
$name, | |||
$primary = false |
|||
) |
$table | ||
$name | ||
bool | $primary |
Implements ilDBManager.
Definition at line 350 of file class.ilDBPdoManagerPostgres.php.
References ilDBPdoManager\getDBInstance(), and ilDBPdoManager\getIndexName().
ilDBPdoManagerPostgres::dropDatabase | ( | $name | ) |
$name |
Definition at line 86 of file class.ilDBPdoManagerPostgres.php.
References ilDBPdoManager\$db_instance, $query, $result, ilDBPdoManager\alterTable(), ilDBPdoManager\getIndexName(), listTableConstraints(), listTableIndexes(), and ilDBConstants\MODULE_REVERSE.
ilDBPdoManagerPostgres::dropIndex | ( | $table, | |
$name | |||
) |
$table | |
$name |
Implements ilDBManager.
Definition at line 295 of file class.ilDBPdoManagerPostgres.php.
References ilDBPdoManager\$db_instance, ilDBPdoManager\getDBInstance(), and ilDBPdoManager\getIndexName().
ilDBPdoManagerPostgres::dropSequence | ( | $seq_name | ) |
$seq_name |
Implements ilDBManager.
Definition at line 281 of file class.ilDBPdoManagerPostgres.php.
References ilDBPdoManager\$db_instance.
|
protected |
$idx |
Definition at line 309 of file class.ilDBPdoManagerPostgres.php.
References ilDBPdoFieldDefinition\INDEX_FORMAT.
Referenced by listTableConstraints(), and listTableIndexes().
ilDBPdoManagerPostgres::getQueryUtils | ( | ) |
Definition at line 15 of file class.ilDBPdoManagerPostgres.php.
References ilDBPdoManager\$query_utils.
Referenced by createTable(), and getTableCreationQuery().
ilDBPdoManagerPostgres::getTableCreationQuery | ( | $name, | |
$fields, | |||
$options = array() |
|||
) |
$name | ||
$fields | ||
array | $options |
Definition at line 31 of file class.ilDBPdoManagerPostgres.php.
References $options, and getQueryUtils().
ilDBPdoManagerPostgres::listSequences | ( | $database = null | ) |
null | $database |
Implements ilDBManager.
Definition at line 324 of file class.ilDBPdoManagerPostgres.php.
References ilDBPdoManager\$db_instance, $query, $result, array, and ilDBPdoManager\fixSequenceName().
ilDBPdoManagerPostgres::listTableConstraints | ( | $table | ) |
$table |
Implements ilDBManager.
Definition at line 235 of file class.ilDBPdoManagerPostgres.php.
References ilDBPdoManager\$db_instance, $query, $result, array, and fixIndexName().
Referenced by dropDatabase().
ilDBPdoManagerPostgres::listTableFields | ( | $table | ) |
$table |
Implements ilDBManager.
Definition at line 190 of file class.ilDBPdoManagerPostgres.php.
References $data, ilDBPdoManager\$db_instance, and $res.
ilDBPdoManagerPostgres::listTableIndexes | ( | $table | ) |
$table |
Implements ilDBManager.
Definition at line 206 of file class.ilDBPdoManagerPostgres.php.
References ilDBPdoManager\$db_instance, $query, $result, array, and fixIndexName().
Referenced by dropDatabase().
ilDBPdoManagerPostgres::listTables | ( | $database = null | ) |
null | $database |
Implements ilDBManager.
Definition at line 51 of file class.ilDBPdoManagerPostgres.php.
References ilDBPdoManager\$db_instance, $query, $result, and ilDBConstants\FETCHMODE_ASSOC.