ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
interface.ilDBManager.php
Go to the documentation of this file.
1<?php
2
8interface ilDBManager {
9
14 public function listTables($database = null);
15
16
21 public function listSequences($database = null);
22
23
30 public function createConstraint($table, $name, $definition);
31
32
37 public function listTableFields($table);
38
39
44 public function listTableConstraints($table);
45
46
53 public function createSequence($seq_name, $start = 1, $options = array());
54
55
60 public function listTableIndexes($table);
61
62
69 public function alterTable($name, $changes, $check);
70
71
78 public function createIndex($table, $name, $definition);
79
80
86 public function dropIndex($table, $name);
87
88
93 public function dropSequence($seq_name);
94
95
102 public function dropConstraint($table, $name, $primary = false);
103
104
109 public function dropTable($name);
110
111 //
112 // NOT YET IMPLEMENTED
113 //
114
115 // /**
116 // * @param $name
117 // * @return mixed
118 // */
119 // public function createDatabase($name);
120 //
121 //
122 // /**
123 // * @param $name
124 // * @return mixed
125 // */
126 // public function dropDatabase($name);
127 //
128 //
129 // /**
130 // * @param $name
131 // * @param $fields
132 // * @param array $options
133 // * @return mixed
134 // */
135 // public function createTable($name, $fields, $options = array());
136 //
137 // /**
138 // * @return mixed
139 // */
140 // public function listDatabases();
141 //
142 //
143 // /**
144 // * @return mixed
145 // */
146 // public function listUsers();
147 //
148 //
149 // /**
150 // * @return mixed
151 // */
152 // public function listFunctions();
153 //
154 //
155 // /**
156 // * @param null $table
157 // * @return mixed
158 // */
159 // public function listTableTriggers($table = null);
160 //
161 //
162 // /**
163 // * @param null $database
164 // * @return mixed
165 // */
166 // public function listViews($database = null);
167 //
168 //
169
170 //
171
172}
173
180
185 public function getIndexName($idx);
186
187
192 public function getSequenceName($sqn);
193}
An exception for terminatinating execution or to throw for unit testing.
Interface ilDBManager.
dropIndex($table, $name)
dropConstraint($table, $name, $primary=false)
dropTable($name)
createConstraint($table, $name, $definition)
dropSequence($seq_name)
alterTable($name, $changes, $check)
listTableConstraints($table)
createSequence($seq_name, $start=1, $options=array())
listSequences($database=null)
listTableIndexes($table)
createIndex($table, $name, $definition)
listTableFields($table)
listTables($database=null)
Interface ilDBPdoManagerInterface.
if(!is_array($argv)) $options