ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
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 79 of file class.ilDBPdoManagerPostgres.php.
References ilDBPdoManager\$db_instance, and $name.
ilDBPdoManagerPostgres::createSequence | ( | $seq_name, | |
$start = 1 , |
|||
$options = array() |
|||
) |
$seq_name | ||
int | $start | |
array | $options |
Implements ilDBManager.
Definition at line 278 of file class.ilDBPdoManagerPostgres.php.
References ilDBPdoManager\$db_instance, and $start.
ilDBPdoManagerPostgres::createTable | ( | $name, | |
$fields, | |||
$options = array() |
|||
) |
$name | ||
$fields | ||
array | $options |
Definition at line 45 of file class.ilDBPdoManagerPostgres.php.
References $name, PHPMailer\PHPMailer\$options, and getQueryUtils().
ilDBPdoManagerPostgres::dropConstraint | ( | $table, | |
$name, | |||
$primary = false |
|||
) |
$table | ||
$name | ||
bool | $primary |
Implements ilDBManager.
Definition at line 365 of file class.ilDBPdoManagerPostgres.php.
References $name, $table, ilDBPdoManager\getDBInstance(), and ilDBPdoManager\getIndexName().
ilDBPdoManagerPostgres::dropDatabase | ( | $name | ) |
$name |
Definition at line 92 of file class.ilDBPdoManagerPostgres.php.
References ilDBPdoManager\$db_instance, $name, $query, $result, ilDBPdoManager\alterTable(), ilDBPdoManager\getIndexName(), listTableConstraints(), listTableIndexes(), and ilDBConstants\MODULE_REVERSE.
ilDBPdoManagerPostgres::dropIndex | ( | $table, | |
$name | |||
) |
$table | |
$name |
Implements ilDBManager.
Definition at line 307 of file class.ilDBPdoManagerPostgres.php.
References ilDBPdoManager\$db_instance, $name, $table, ilDBPdoManager\getDBInstance(), and ilDBPdoManager\getIndexName().
ilDBPdoManagerPostgres::dropSequence | ( | $seq_name | ) |
$seq_name |
Implements ilDBManager.
Definition at line 292 of file class.ilDBPdoManagerPostgres.php.
References ilDBPdoManager\$db_instance.
|
protected |
$idx |
Definition at line 322 of file class.ilDBPdoManagerPostgres.php.
References ilDBPdoFieldDefinition\INDEX_FORMAT.
Referenced by listTableConstraints(), and listTableIndexes().
ilDBPdoManagerPostgres::getQueryUtils | ( | ) |
Definition at line 16 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 33 of file class.ilDBPdoManagerPostgres.php.
References $name, PHPMailer\PHPMailer\$options, and getQueryUtils().
ilDBPdoManagerPostgres::listSequences | ( | $database = null | ) |
null | $database |
Implements ilDBManager.
Definition at line 338 of file class.ilDBPdoManagerPostgres.php.
References ilDBPdoManager\$db_instance, $query, $result, and ilDBPdoManager\fixSequenceName().
ilDBPdoManagerPostgres::listTableConstraints | ( | $table | ) |
$table |
Implements ilDBManager.
Definition at line 244 of file class.ilDBPdoManagerPostgres.php.
References ilDBPdoManager\$db_instance, $query, $result, $table, and fixIndexName().
Referenced by dropDatabase().
ilDBPdoManagerPostgres::listTableFields | ( | $table | ) |
$table |
Implements ilDBManager.
Definition at line 197 of file class.ilDBPdoManagerPostgres.php.
References $data, ilDBPdoManager\$db_instance, $i, $res, and $table.
ilDBPdoManagerPostgres::listTableIndexes | ( | $table | ) |
$table |
Implements ilDBManager.
Definition at line 214 of file class.ilDBPdoManagerPostgres.php.
References ilDBPdoManager\$db_instance, $index, $query, $result, $table, and fixIndexName().
Referenced by dropDatabase().
ilDBPdoManagerPostgres::listTables | ( | $database = null | ) |
null | $database |
Implements ilDBManager.
Definition at line 55 of file class.ilDBPdoManagerPostgres.php.
References ilDBPdoManager\$db_instance, $query, $result, and ilDBConstants\FETCHMODE_ASSOC.