43 public function connect($return_false_on_error =
false);
51 public function nextId($table_name);
61 public function createTable($table_name, $fields, $drop_table =
false, $ignore_erros =
false);
115 public function dropTable($table_name, $error_if_not_existing =
true);
169 public function renameTableColumn($table_name, $column_old_name, $column_new_name);
225 public function numRows($query_result);
244 public function addIndex($table_name, $fields, $index_name =
'', $fulltext =
false);
333 public function setLimit($limit, $offset);
345 public function like($column,
$type, $value =
"?", $case_insensitive =
true);
351 public function now();
361 public function replace(
$table, $primaryKeys, $otherColumns);
402 public function upper($a_exp);
409 public function lower($a_exp);
416 public function substr($a_exp);
425 public function prepare($a_query, $a_types = null, $a_result_types = null);
433 public function prepareManip($a_query, $a_types = null);
531 public function locate($a_needle, $a_string, $a_start_pos = 1);
555 public function free($a_st);
606 public function dropIndex($a_table, $a_name =
"i1");
615 public function createDatabase($a_name, $a_charset =
"utf8", $a_collation =
"");
681 public function groupConcat($a_field_name, $a_seperator =
",", $a_order = null);
689 public function cast($a_field_name, $a_dest_type);
702 public function getServerVersion($native =
false);
728 public function escape($value, $escape_wildcards =
false);
735 public function escapePattern(
$text);
749 public function supportsEngineMigration();
763 public function supportsCollationMigration();
772 public function addUniqueConstraint(
$table, $fields,
$name =
"con");
780 public function dropUniqueConstraint(
$table,
$name =
"con");
788 public function dropUniqueConstraintByFields(
$table, $fields);
795 public function checkIndexName(
$name);
801 public function getLastInsertId();
810 public function prepare(
$query, $types = null, $result_types = null);
818 public function uniqueConstraintExists(
$table, array $fields);
824 public function dropPrimaryKey($table_name);
831 public function executeMultiple(
$stmt,
$data);
839 public function fromUnixtime($expr, $to_text =
true);
845 public function unixTimestamp();
871 public function getDBVersion();
prepareManip($a_query, $a_types=null)
initFromIniFile($tmpClientIniFile=null)
modifyTableColumn($table, $column, $attributes)
static getReservedWords()
Get reserved words.
execute($stmt, $data=array())
locate($a_needle, $a_string, $a_start_pos=1)
const MYSQL_COLLATION_UTF8MB4
addPrimaryKey($table_name, $primary_keys)
setLimit($limit, $offset)
isFulltextIndex($a_table, $a_name)
Interface ilDBPdoInterface.
connect($return_false_on_error=false)
prepare($a_query, $a_types=null, $a_result_types=null)
Prepare a query (SELECT) statement to be used with execute.
getPrimaryKeyIdentifier()
renameTable($old_name, $new_name)
replace($table, $primaryKeys, $otherColumns)
Replace into method.
constraintName($a_table, $a_constraint)
in($field, $values, $negate=false, $type="")
sequenceExists($sequence)
createSequence($table_name, $start=1)
update($table_name, $values, $where)
enableResultBuffering($a_status)
useSlave($bool)
Return false iff slave is not supported.
if($modEnd===false) $module
concat(array $values, $allow_null=true)
addIndex($table_name, $fields, $index_name='', $fulltext=false)
dropTable($table_name, $error_if_not_existing=true)
setStorageEngine($storage_engine)
getSequenceName($table_name)
cast($a_field_name, $a_dest_type)
const MYSQL_ENGINE_INNODB
equals($columns, $value, $type, $emptyOrNull=false)
lockTables($tables)
Abstraction of lock table.
queryF($query, $types, $values)
if(array_key_exists('yes', $_REQUEST)) $attributes
dropTableColumn($table_name, $column_name)
createDatabase($a_name, $a_charset="utf8", $a_collation="")
fetchObject($query_result)
quoteIdentifier($identifier, $check_option=false)
dropIndex($a_table, $a_name="i1")
doesCollationSupportMB4Strings()
static isReservedWord($a_word)
indexExistsByFields($table_name, $fields)
unlockTables()
Unlock tables locked by previous lock table calls.
tableColumnExists($table_name, $column_name)
sanitizeMB4StringIfNotSupported($query)
query($query)
Run a (read-only) Query on the database.
insert($table_name, $values)
fetchAssoc($query_result)
addTableColumn($table_name, $column_name, $attributes)
dropSequence($table_name)
if(empty($password)) $table
like($column, $type, $value="?", $case_insensitive=true)
Generate a like subquery.
addFulltextIndex($table_name, $afields, $a_name='in')
manipulateF($query, $types, $values)
createTable($table_name, $fields, $drop_table=false, $ignore_erros=false)
manipulate($query)
Run a (write) Query on the database.
groupConcat($a_field_name, $a_seperator=",", $a_order=null)
fetchAll($query_result, $fetch_mode=ilDBConstants::FETCHMODE_ASSOC)
renameTableColumn($table_name, $column_old_name, $column_new_name)
dropIndexByFields($table_name, $afields)
dropFulltextIndex($a_table, $a_name)