1 | <?php |
||
23 | class SQL extends \Query\AbstractSQL { |
||
24 | |||
25 | /** |
||
26 | * Get the query plan for the sql query |
||
27 | * |
||
28 | * @param string $sql |
||
29 | * @return string |
||
30 | */ |
||
31 | public function explain($sql) |
||
35 | |||
36 | // -------------------------------------------------------------------------- |
||
37 | |||
38 | /** |
||
39 | * Random ordering keyword |
||
40 | * |
||
41 | * @return string |
||
42 | */ |
||
43 | public function random() |
||
47 | |||
48 | // -------------------------------------------------------------------------- |
||
49 | |||
50 | /** |
||
51 | * Returns sql to list other databases |
||
52 | * |
||
53 | * @return string |
||
54 | */ |
||
55 | public function db_list() |
||
63 | |||
64 | // -------------------------------------------------------------------------- |
||
65 | |||
66 | /** |
||
67 | * Returns sql to list tables |
||
68 | * |
||
69 | * @return string |
||
70 | */ |
||
71 | public function table_list() |
||
81 | |||
82 | // -------------------------------------------------------------------------- |
||
83 | |||
84 | /** |
||
85 | * Returns sql to list system tables |
||
86 | * |
||
87 | * @return string |
||
88 | */ |
||
89 | public function system_table_list() |
||
99 | |||
100 | // -------------------------------------------------------------------------- |
||
101 | |||
102 | /** |
||
103 | * Returns sql to list views |
||
104 | * |
||
105 | * @return string |
||
106 | */ |
||
107 | public function view_list() |
||
117 | |||
118 | // -------------------------------------------------------------------------- |
||
119 | |||
120 | /** |
||
121 | * Returns sql to list triggers |
||
122 | * |
||
123 | * @return string |
||
124 | */ |
||
125 | public function trigger_list() |
||
134 | |||
135 | // -------------------------------------------------------------------------- |
||
136 | |||
137 | /** |
||
138 | * Return sql to list functions |
||
139 | * |
||
140 | * @return NULL |
||
141 | */ |
||
142 | public function function_list() |
||
146 | |||
147 | // -------------------------------------------------------------------------- |
||
148 | |||
149 | /** |
||
150 | * Return sql to list stored procedures |
||
151 | * |
||
152 | * @return string |
||
153 | */ |
||
154 | public function procedure_list() |
||
164 | |||
165 | // -------------------------------------------------------------------------- |
||
166 | |||
167 | /** |
||
168 | * Return sql to list sequences |
||
169 | * |
||
170 | * @return string |
||
171 | */ |
||
172 | public function sequence_list() |
||
181 | |||
182 | // -------------------------------------------------------------------------- |
||
183 | |||
184 | /** |
||
185 | * Return sql to list columns of the specified table |
||
186 | * |
||
187 | * @param string $table |
||
188 | * @return string |
||
189 | */ |
||
190 | public function column_list($table) |
||
205 | |||
206 | // -------------------------------------------------------------------------- |
||
207 | |||
208 | /** |
||
209 | * SQL to show list of field types |
||
210 | * |
||
211 | * @return string |
||
212 | */ |
||
213 | public function type_list() |
||
222 | |||
223 | // -------------------------------------------------------------------------- |
||
224 | |||
225 | /** |
||
226 | * Get the list of foreign keys for the current |
||
227 | * table |
||
228 | * |
||
229 | * @param string $table |
||
230 | * @return string |
||
231 | */ |
||
232 | public function fk_list($table) |
||
267 | |||
268 | // -------------------------------------------------------------------------- |
||
269 | |||
270 | /** |
||
271 | * Get the list of indexes for the current table |
||
272 | * |
||
273 | * @param string $table |
||
274 | * @return array |
||
275 | */ |
||
276 | public function index_list($table) |
||
303 | } |
||
304 | //End of pgsql_sql.php |