19 declare(strict_types=1);
36 public function escape(
string $value,
bool $escape_wildcards =
false): string;
56 public function addUniqueConstraint(
string $table, array $fields,
string $name =
"con"): bool;
76 public function fromUnixtime(
string $expr,
bool $to_text =
true): string;
migrateTableCollation(string $table_name, string $collation=ilDBConstants::MYSQL_COLLATION_UTF8MB4)
getDBVersion()
returns the Version of the Database (e.g.
dropPrimaryKey(string $table_name)
const MYSQL_COLLATION_UTF8MB4
Interface ilDBPdoInterface.
addUniqueConstraint(string $table, array $fields, string $name="con")
fromUnixtime(string $expr, bool $to_text=true)
migrateTableToEngine(string $table_name, string $engine=ilDBConstants::MYSQL_ENGINE_INNODB)
dropUniqueConstraintByFields(string $table, array $fields)
queryCol(string $query, int $type=ilDBConstants::FETCHMODE_DEFAULT, int $colnum=0)
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
checkIndexName(string $name)
migrateAllTablesToEngine(string $engine=ilDBConstants::MYSQL_ENGINE_INNODB)
const MYSQL_ENGINE_INNODB
executeMultiple(ilDBStatement $stmt, array $data)
migrateAllTablesToCollation(string $collation=ilDBConstants::MYSQL_COLLATION_UTF8MB4)
getServerVersion(bool $native=false)
supportsCollationMigration()
dropUniqueConstraint(string $table, string $name="con")
queryRow(string $query, ?array $types=null, int $fetchmode=ilDBConstants::FETCHMODE_DEFAULT)
escapePattern(string $text)
supportsEngineMigration()
uniqueConstraintExists(string $table, array $fields)
escape(string $value, bool $escape_wildcards=false)