19 declare(strict_types=1);
    50     public function connect(
bool $return_false_on_error = 
false): ?bool;
    52     public function nextId(
string $table_name): 
int;
    57         bool $drop_table = 
false,
    58         bool $ignore_erros = 
false    61     public function addPrimaryKey(
string $table_name, array $primary_keys): bool;
    63     public function createSequence(
string $table_name, 
int $start = 1): bool;
    67     public function tableExists(
string $table_name): bool;
    71     public function addTableColumn(
string $table_name, 
string $column_name, array $attributes): bool;
    73     public function dropTable(
string $table_name, 
bool $error_if_not_existing = 
true): bool;
    75     public function renameTable(
string $old_name, 
string $new_name): bool;
    86     public function dropTableColumn(
string $table_name, 
string $column_name): bool;
    88     public function renameTableColumn(
string $table_name, 
string $column_old_name, 
string $column_new_name): bool;
    93     public function insert(
string $table_name, array $values): 
int;
   102     public function update(
string $table_name, array $values, array $where): 
int;
   117     public function quote($value, 
string $type): string;
   119     public function addIndex(
string $table_name, array $fields, 
string $index_name = 
'', 
bool $fulltext = 
false): bool;
   126     public function getDSN(): string;
   138     public function lockTables(array $tables): void;
   146     public function in(
string $field, array $values, 
bool $negate = 
false, 
string $type = 
""): string;
   157     public function manipulateF(
string $query, array $types, array $values): 
int;
   162     public function useSlave(
bool $bool): bool;
   164     public function setLimit(
int $limit, 
int $offset = 0): void;
   169     public function like(
string $column, 
string $type, 
string $value = 
"?", 
bool $case_insensitive = 
true): string;
   174     public function now(): string;
   183     public function replace(
string $table, array $primary_keys, array $other_columns): 
int;
   185     public function equals(
string $columns, $value, 
string $type, 
bool $emptyOrNull = 
false): string;
   187     public function setDBUser(
string $user): void;
   189     public function setDBPort(
int $port): void;
   193     public function setDBHost(
string $host): void;
   195     public function upper(
string $expression): string;
   197     public function lower(
string $expression): string;
   199     public function substr(
string $expression): string;
   204     public function prepare(
string $a_query, array $a_types = null, array $a_result_types = null): 
ilDBStatement;
   222     public function supports(
string $feature): bool;
   247     public function concat(array $values, 
bool $allow_null = 
true): string;
   249     public function locate(
string $needle, 
string $string, 
int $start_pos = 1): string;
   251     public function quoteIdentifier(
string $identifier, 
bool $check_option = 
false): string;
   253     public function modifyTableColumn(
string $table, 
string $column, array $attributes): bool;
   269     public function commit(): bool;
   276     public function constraintName(
string $a_table, 
string $a_constraint): string;
   278     public function dropIndex(
string $a_table, 
string $a_name = 
"i1"): bool;
   280     public function createDatabase(
string $a_name, 
string $a_charset = 
"utf8", 
string $a_collation = 
""): bool;
   286     public function addFulltextIndex(
string $table_name, array $afields, 
string $a_name = 
'in'): bool;
   290     public function isFulltextIndex(
string $a_table, 
string $a_name): bool;
   298     public function groupConcat(
string $a_field_name, 
string $a_seperator = 
",", ?
string $a_order = null): string;
   300     public function cast(
string $a_field_name, 
string $a_dest_type): string;
   307         string $foreign_key_name,
   310         array $reference_field_names,
   311         string $reference_table,
   316     public function dropForeignKey(
string $foreign_key_name, 
string $table_name): bool;
   318     public function foreignKeyExists(
string $foreign_key_name, 
string $table_name): bool;
 
initFromIniFile(?ilIniFile $ini=null)
 
constraintName(string $a_table, string $a_constraint)
 
renameTableColumn(string $table_name, string $column_old_name, string $column_new_name)
 
numRows(ilDBStatement $statement)
 
quoteIdentifier(string $identifier, bool $check_option=false)
 
enableResultBuffering(bool $a_status)
 
insert(string $table_name, array $values)
 
static getReservedWords()
Get reserved words. 
 
manipulateF(string $query, array $types, array $values)
 
createDatabase(string $a_name, string $a_charset="utf8", string $a_collation="")
 
dropTableColumn(string $table_name, string $column_name)
 
indexExistsByFields(string $table_name, array $fields)
 
equals(string $columns, $value, string $type, bool $emptyOrNull=false)
 
fetchAssoc(ilDBStatement $statement)
 
like(string $column, string $type, string $value="?", bool $case_insensitive=true)
Generate a like subquery. 
 
getSequenceName(string $table_name)
 
update(string $table_name, array $values, array $where)
$where MUST contain existing columns only. 
 
locate(string $needle, string $string, int $start_pos=1)
 
fetchAll(ilDBStatement $statement, int $fetch_mode=ilDBConstants::FETCHMODE_ASSOC)
 
getPrimaryKeyIdentifier()
 
dropFulltextIndex(string $a_table, string $a_name)
 
quote($value, string $type)
 
free(ilDBStatement $a_st)
 
tableExists(string $table_name)
 
primaryExistsByFields(string $table_name, array $fields)
 
setLimit(int $limit, int $offset=0)
 
addIndex(string $table_name, array $fields, string $index_name='', bool $fulltext=false)
 
modifyTableColumn(string $table, string $column, array $attributes)
 
dropIndexByFields(string $table_name, array $afields)
 
addPrimaryKey(string $table_name, array $primary_keys)
 
createSequence(string $table_name, int $start=1)
 
sequenceExists(string $sequence)
 
setStorageEngine(string $storage_engine)
 
groupConcat(string $a_field_name, string $a_seperator=",", ?string $a_order=null)
 
execute(ilDBStatement $stmt, array $data=[])
 
loadModule(string $module)
 
dropForeignKey(string $foreign_key_name, string $table_name)
 
tableColumnExists(string $table_name, string $column_name)
 
static isReservedWord(string $a_word)
 
addForeignKey(string $foreign_key_name, array $field_names, string $table_name, array $reference_field_names, string $reference_table, ?ForeignKeyConstraints $on_update=null, ?ForeignKeyConstraints $on_delete=null)
 
nextId(string $table_name)
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
foreignKeyExists(string $foreign_key_name, string $table_name)
 
upper(string $expression)
 
cast(string $a_field_name, string $a_dest_type)
 
checkTableName(string $a_name)
 
addTableColumn(string $table_name, string $column_name, array $attributes)
 
renameTable(string $old_name, string $new_name)
 
fetchObject(ilDBStatement $query_result)
 
query(string $query)
Run a (read-only) Query on the database. 
 
connect(bool $return_false_on_error=false)
 
substr(string $expression)
 
supports(string $feature)
 
queryF(string $query, array $types, array $values)
 
sanitizeMB4StringIfNotSupported(string $query)
 
dropTable(string $table_name, bool $error_if_not_existing=true)
 
doesCollationSupportMB4Strings()
 
in(string $field, array $values, bool $negate=false, string $type="")
 
prepareManip(string $a_query, ?array $a_types=null)
 
lower(string $expression)
 
addFulltextIndex(string $table_name, array $afields, string $a_name='in')
 
replace(string $table, array $primary_keys, array $other_columns)
Replace into method. 
 
isFulltextIndex(string $a_table, string $a_name)
 
unlockTables()
Unlock tables locked by previous lock table calls. 
 
prepare(string $a_query, array $a_types=null, array $a_result_types=null)
Prepare a query (SELECT) statement to be used with execute. 
 
setDBPassword(string $password)
 
createTable(string $table_name, array $fields, bool $drop_table=false, bool $ignore_erros=false)
 
lockTables(array $tables)
Abstraction of lock table. 
 
dropIndex(string $a_table, string $a_name="i1")
 
manipulate(string $query)
Run a (write) Query on the database. 
 
dropSequence(string $table_name)
 
concat(array $values, bool $allow_null=true)