ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
interface.ilDBManager.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
25 interface ilDBManager
26 {
30  public function listTables(?string $database = null): array;
31 
35  public function listSequences(?string $database = null): array;
36 
37  public function createConstraint(string $table, string $name, array $definition): bool;
38 
42  public function listTableFields(string $table): array;
43 
47  public function listTableConstraints(string $table): array;
48 
49  public function createSequence(string $seq_name, int $start = 1, array $options = []): bool;
50 
54  public function listTableIndexes(string $table): array;
55 
56  public function alterTable(string $name, array $changes, bool $check): bool;
57 
58  public function createIndex(string $table, string $name, array $definition): bool;
59 
60  public function dropIndex(string $table, string $name): bool;
61 
62  public function dropSequence(string $seq_name): bool;
63 
64  public function dropConstraint(string $table, string $name, bool $primary = false): bool;
65 
69  public function dropTable(string $name): bool;
70 }
dropTable(string $name)
listTableIndexes(string $table)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
createIndex(string $table, string $name, array $definition)
listSequences(?string $database=null)
createSequence(string $seq_name, int $start=1, array $options=[])
if($format !==null) $name
Definition: metadata.php:247
$check
Definition: buildRTE.php:81
listTableConstraints(string $table)
listTableFields(string $table)
listTables(?string $database=null)
dropConstraint(string $table, string $name, bool $primary=false)
createConstraint(string $table, string $name, array $definition)
dropIndex(string $table, string $name)
alterTable(string $name, array $changes, bool $check)
dropSequence(string $seq_name)