1 | <?php |
||
24 | class SQL extends \Query\AbstractSQL { |
||
25 | |||
26 | /** |
||
27 | * Get the query plan for the sql query |
||
28 | * |
||
29 | * @param string $sql |
||
30 | * @return string |
||
31 | */ |
||
32 | public function explain($sql) |
||
36 | |||
37 | // -------------------------------------------------------------------------- |
||
38 | |||
39 | /** |
||
40 | * Random ordering keyword |
||
41 | * |
||
42 | * @return string |
||
43 | */ |
||
44 | public function random() |
||
48 | |||
49 | // -------------------------------------------------------------------------- |
||
50 | |||
51 | /** |
||
52 | * Returns sql to list other databases |
||
53 | * |
||
54 | * @return string |
||
55 | */ |
||
56 | public function db_list() |
||
60 | |||
61 | // -------------------------------------------------------------------------- |
||
62 | |||
63 | /** |
||
64 | * Returns sql to list tables |
||
65 | * |
||
66 | * @return string |
||
67 | */ |
||
68 | public function table_list() |
||
78 | |||
79 | // -------------------------------------------------------------------------- |
||
80 | |||
81 | /** |
||
82 | * List the system tables |
||
83 | * |
||
84 | * @return string[] |
||
85 | */ |
||
86 | public function system_table_list() |
||
90 | |||
91 | // -------------------------------------------------------------------------- |
||
92 | |||
93 | /** |
||
94 | * Returns sql to list views |
||
95 | * |
||
96 | * @return string |
||
97 | */ |
||
98 | public function view_list() |
||
104 | |||
105 | // -------------------------------------------------------------------------- |
||
106 | |||
107 | /** |
||
108 | * Returns sql to list triggers |
||
109 | * |
||
110 | * @return string |
||
111 | */ |
||
112 | public function trigger_list() |
||
116 | |||
117 | // -------------------------------------------------------------------------- |
||
118 | |||
119 | /** |
||
120 | * Return sql to list functions |
||
121 | * |
||
122 | * @return NULL |
||
123 | */ |
||
124 | public function function_list() |
||
128 | |||
129 | // -------------------------------------------------------------------------- |
||
130 | |||
131 | /** |
||
132 | * Return sql to list stored procedures |
||
133 | * |
||
134 | * @return NULL |
||
135 | */ |
||
136 | public function procedure_list() |
||
140 | |||
141 | // -------------------------------------------------------------------------- |
||
142 | |||
143 | /** |
||
144 | * Return sql to list sequences |
||
145 | * |
||
146 | * @return NULL |
||
147 | */ |
||
148 | public function sequence_list() |
||
152 | |||
153 | // -------------------------------------------------------------------------- |
||
154 | |||
155 | /** |
||
156 | * SQL to show list of field types |
||
157 | * |
||
158 | * @return string[] |
||
159 | */ |
||
160 | public function type_list() |
||
164 | |||
165 | // -------------------------------------------------------------------------- |
||
166 | |||
167 | /** |
||
168 | * SQL to show infromation about columns in a table |
||
169 | * |
||
170 | * @param string $table |
||
171 | * @return string |
||
172 | */ |
||
173 | public function column_list($table) |
||
177 | |||
178 | // -------------------------------------------------------------------------- |
||
179 | |||
180 | /** |
||
181 | * Get the list of foreign keys for the current |
||
182 | * table |
||
183 | * |
||
184 | * @param string $table |
||
185 | * @return string |
||
186 | */ |
||
187 | public function fk_list($table) |
||
191 | |||
192 | // -------------------------------------------------------------------------- |
||
193 | |||
194 | /** |
||
195 | * Get the list of indexes for the current table |
||
196 | * |
||
197 | * @param string $table |
||
198 | * @return string |
||
199 | */ |
||
200 | public function index_list($table) |
||
204 | |||
205 | } |
||
206 | //End of sqlite_sql.php |