ILIAS  trunk Revision v12.0_alpha-1227-g7ff6d300864
ilDBManager.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
27interface ilDBManager
28{
32 public function listTables(?string $database = null): array;
33
37 public function listSequences(?string $database = null): array;
38
39 public function createConstraint(string $table, string $name, array $definition): bool;
40
44 public function listTableFields(string $table): array;
45
49 public function listTableConstraints(string $table): array;
50
51 public function createSequence(string $seq_name, int $start = 1, array $options = []): bool;
52
56 public function listTableIndexes(string $table): array;
57
58 public function alterTable(string $name, array $changes, bool $check): bool;
59
60 public function createIndex(string $table, string $name, array $definition): bool;
61
62 public function dropIndex(string $table, string $name): bool;
63
64 public function dropSequence(string $seq_name): bool;
65
66 public function dropConstraint(string $table, string $name, bool $primary = false): bool;
67
71 public function dropTable(string $name): bool;
72
74
75 public function createTable(string $name, array $fields, array $options = []): bool;
76
81 public function addForeignKey(
82 string $foreign_key_name,
83 array $field_names,
84 string $table_name,
85 array $reference_field_names,
86 string $reference_table,
87 ?ForeignKeyConstraints $on_update = null,
88 ?ForeignKeyConstraints $on_delete = null
89 ): bool;
90
91 public function foreignKeyExists(string $foreign_key_name, string $table_name): bool;
92
93 public function dropForeignKey(string $foreign_key_name, string $table_name): bool;
94}
$check
Definition: buildRTE.php:81
Interface ilDBManager.
Definition: ilDBManager.php:28
listTableIndexes(string $table)
dropIndex(string $table, string $name)
createSequence(string $seq_name, int $start=1, array $options=[])
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)
foreignKeyExists(string $foreign_key_name, string $table_name)
dropForeignKey(string $foreign_key_name, string $table_name)
dropTable(string $name)
listSequences(?string $database=null)
alterTable(string $name, array $changes, bool $check)
createConstraint(string $table, string $name, array $definition)
listTableFields(string $table)
createIndex(string $table, string $name, array $definition)
listTables(?string $database=null)
dropSequence(string $seq_name)
dropConstraint(string $table, string $name, bool $primary=false)
createTable(string $name, array $fields, array $options=[])
listTableConstraints(string $table)
Interface ilQueryUtilsInterface.