1 | <?php |
||
24 | class SQL extends \Query\AbstractSQL { |
||
25 | |||
26 | /** |
||
27 | * Limit clause |
||
28 | * |
||
29 | * @param string $sql |
||
30 | * @param int $limit |
||
31 | * @param int|bool $offset |
||
32 | * @return string |
||
33 | */ |
||
34 | public function limit($sql, $limit, $offset=FALSE) |
||
50 | |||
51 | // -------------------------------------------------------------------------- |
||
52 | |||
53 | /** |
||
54 | * Get the query plan for the sql query |
||
55 | * |
||
56 | * @param string $sql |
||
57 | * @return string |
||
58 | */ |
||
59 | public function explain($sql) |
||
63 | |||
64 | // -------------------------------------------------------------------------- |
||
65 | |||
66 | /** |
||
67 | * Random ordering keyword |
||
68 | * |
||
69 | * @return string |
||
70 | */ |
||
71 | public function random() |
||
75 | |||
76 | |||
77 | // -------------------------------------------------------------------------- |
||
78 | |||
79 | /** |
||
80 | * Returns sql to list other databases |
||
81 | * |
||
82 | * @return NULL |
||
83 | */ |
||
84 | public function db_list() |
||
88 | |||
89 | // -------------------------------------------------------------------------- |
||
90 | |||
91 | /** |
||
92 | * Returns sql to list tables |
||
93 | * |
||
94 | * @return string |
||
95 | */ |
||
96 | public function table_list() |
||
106 | |||
107 | // -------------------------------------------------------------------------- |
||
108 | |||
109 | /** |
||
110 | * Returns sql to list system tables |
||
111 | * |
||
112 | * @return string |
||
113 | */ |
||
114 | public function system_table_list() |
||
123 | |||
124 | // -------------------------------------------------------------------------- |
||
125 | |||
126 | /** |
||
127 | * Returns sql to list views |
||
128 | * |
||
129 | * @return string |
||
130 | */ |
||
131 | public function view_list() |
||
138 | |||
139 | // -------------------------------------------------------------------------- |
||
140 | |||
141 | /** |
||
142 | * Returns sql to list triggers |
||
143 | * |
||
144 | * @return string |
||
145 | */ |
||
146 | public function trigger_list() |
||
153 | |||
154 | // -------------------------------------------------------------------------- |
||
155 | |||
156 | /** |
||
157 | * Return sql to list functions |
||
158 | * |
||
159 | * @return string |
||
160 | */ |
||
161 | public function function_list() |
||
165 | |||
166 | // -------------------------------------------------------------------------- |
||
167 | |||
168 | /** |
||
169 | * Return sql to list stored procedures |
||
170 | * |
||
171 | * @return string |
||
172 | */ |
||
173 | public function procedure_list() |
||
193 | |||
194 | // -------------------------------------------------------------------------- |
||
195 | |||
196 | /** |
||
197 | * Return sql to list sequences |
||
198 | * |
||
199 | * @return string |
||
200 | */ |
||
201 | public function sequence_list() |
||
209 | |||
210 | // -------------------------------------------------------------------------- |
||
211 | |||
212 | /** |
||
213 | * Return sql to list columns of the specified table |
||
214 | * |
||
215 | * @param string $table |
||
216 | * @return string |
||
217 | */ |
||
218 | public function column_list($table) |
||
256 | |||
257 | // -------------------------------------------------------------------------- |
||
258 | |||
259 | /** |
||
260 | * SQL to show list of field types |
||
261 | * |
||
262 | * @return string |
||
263 | */ |
||
264 | public function type_list() |
||
272 | |||
273 | // -------------------------------------------------------------------------- |
||
274 | |||
275 | /** |
||
276 | * Get the list of foreign keys for the current |
||
277 | * table |
||
278 | * |
||
279 | * @param string $table |
||
280 | * @return string |
||
281 | */ |
||
282 | public function fk_list($table) |
||
301 | |||
302 | // -------------------------------------------------------------------------- |
||
303 | |||
304 | /** |
||
305 | * Get the list of indexes for the current table |
||
306 | * |
||
307 | * @param string $table |
||
308 | * @return array |
||
309 | */ |
||
310 | public function index_list($table) |
||
318 | } |
||
319 | //End of firebird_sql.php |