1 | <?php declare(strict_types=1); |
||
22 | class SQL extends AbstractSQL { |
||
23 | |||
24 | /** |
||
25 | * Get the query plan for the sql query |
||
26 | * |
||
27 | * @param string $sql |
||
28 | * @return string |
||
29 | */ |
||
30 | public function explain(string $sql): string |
||
34 | |||
35 | /** |
||
36 | * Random ordering keyword |
||
37 | * |
||
38 | * @return string |
||
39 | */ |
||
40 | public function random(): string |
||
44 | |||
45 | /** |
||
46 | * Returns sql to list other databases |
||
47 | * |
||
48 | * @return string |
||
49 | */ |
||
50 | public function dbList(): string |
||
58 | |||
59 | /** |
||
60 | * Returns sql to list tables |
||
61 | * |
||
62 | * @return string |
||
63 | */ |
||
64 | public function tableList(): string |
||
74 | |||
75 | /** |
||
76 | * Returns sql to list system tables |
||
77 | * |
||
78 | * @return string |
||
79 | */ |
||
80 | public function systemTableList(): string |
||
90 | |||
91 | /** |
||
92 | * Returns sql to list views |
||
93 | * |
||
94 | * @return string |
||
95 | */ |
||
96 | public function viewList(): string |
||
106 | |||
107 | /** |
||
108 | * Returns sql to list triggers |
||
109 | * |
||
110 | * @return string |
||
111 | */ |
||
112 | public function triggerList(): string |
||
121 | |||
122 | /** |
||
123 | * Return sql to list functions |
||
124 | * |
||
125 | * @return string |
||
126 | */ |
||
127 | public function functionList(): ?string |
||
131 | |||
132 | /** |
||
133 | * Return sql to list stored procedures |
||
134 | * |
||
135 | * @return string |
||
136 | */ |
||
137 | public function procedureList(): string |
||
147 | |||
148 | /** |
||
149 | * Return sql to list sequences |
||
150 | * |
||
151 | * @return string |
||
152 | */ |
||
153 | public function sequenceList(): string |
||
162 | |||
163 | /** |
||
164 | * Return sql to list columns of the specified table |
||
165 | * |
||
166 | * @param string $table |
||
167 | * @return string |
||
168 | */ |
||
169 | public function columnList(string $table): string |
||
184 | |||
185 | /** |
||
186 | * SQL to show list of field types |
||
187 | * |
||
188 | * @return string |
||
189 | */ |
||
190 | public function typeList(): string |
||
199 | |||
200 | /** |
||
201 | * Get the list of foreign keys for the current |
||
202 | * table |
||
203 | * |
||
204 | * @param string $table |
||
205 | * @return string |
||
206 | */ |
||
207 | public function fkList(string $table): string |
||
242 | |||
243 | /** |
||
244 | * Get the list of indexes for the current table |
||
245 | * |
||
246 | * @param string $table |
||
247 | * @return string |
||
248 | */ |
||
249 | public function indexList(string $table): string |
||
276 | } |