1 | <?php |
||
25 | class QueryCompiler implements QueryCompilerInterface |
||
26 | { |
||
27 | /** |
||
28 | * @var TableCompiler |
||
29 | */ |
||
30 | private $tableCompiler; |
||
31 | |||
32 | /** |
||
33 | * @var ReferenceCompiler |
||
34 | */ |
||
35 | private $referenceCompiler; |
||
36 | |||
37 | 6 | public function __construct() |
|
42 | |||
43 | /** |
||
44 | * @inheritdoc |
||
45 | */ |
||
46 | 34 | public function compile(BuilderInterface $qb) |
|
57 | |||
58 | /** |
||
59 | * @param BuilderInterface $qb |
||
60 | * |
||
61 | * @return string |
||
62 | */ |
||
63 | 34 | private function compileNativeSQL(BuilderInterface $qb) |
|
83 | |||
84 | /** |
||
85 | * @param BuilderInterface $qb |
||
86 | * |
||
87 | * @return string |
||
88 | */ |
||
89 | 34 | private function compileDelete(BuilderInterface $qb) |
|
97 | |||
98 | /** |
||
99 | * @param BuilderInterface $qb |
||
100 | * |
||
101 | * @return string |
||
102 | */ |
||
103 | 34 | private function compileInsert(BuilderInterface $qb) |
|
111 | |||
112 | /** |
||
113 | * @param BuilderInterface $qb |
||
114 | * |
||
115 | * @return string |
||
116 | */ |
||
117 | 34 | private function compileUpdate(BuilderInterface $qb) |
|
125 | |||
126 | /** |
||
127 | * @param BuilderInterface $qb |
||
128 | * |
||
129 | * @return string |
||
130 | */ |
||
131 | 34 | private function compileSelect(BuilderInterface $qb) |
|
139 | |||
140 | /** |
||
141 | * @param BuilderInterface $qb |
||
142 | * |
||
143 | * @return string |
||
144 | */ |
||
145 | 34 | private function compileSet(BuilderInterface $qb) |
|
153 | |||
154 | /** |
||
155 | * @param BuilderInterface $qb |
||
156 | * |
||
157 | * @return string |
||
158 | */ |
||
159 | 34 | private function compileWhere(BuilderInterface $qb) |
|
167 | |||
168 | /** |
||
169 | * @param BuilderInterface $qb |
||
170 | * |
||
171 | * @return string |
||
172 | */ |
||
173 | 34 | private function compileGroupBy(BuilderInterface $qb) |
|
183 | |||
184 | /** |
||
185 | * @param BuilderInterface $qb |
||
186 | * |
||
187 | * @return string |
||
188 | */ |
||
189 | 34 | private function compileHaving(BuilderInterface $qb) |
|
197 | |||
198 | /** |
||
199 | * @param BuilderInterface $qb |
||
200 | * |
||
201 | * @return string |
||
202 | */ |
||
203 | 34 | private function compileOrderBy(BuilderInterface $qb) |
|
211 | |||
212 | /** |
||
213 | * @param BuilderInterface $qb |
||
214 | * |
||
215 | * @return string |
||
216 | */ |
||
217 | 34 | private function compileLimit(BuilderInterface $qb) |
|
225 | |||
226 | /** |
||
227 | * @param BuilderInterface $qb |
||
228 | * |
||
229 | * @return string |
||
230 | */ |
||
231 | 34 | private function compileInsertValues(BuilderInterface $qb) |
|
241 | |||
242 | /** |
||
243 | * @param BuilderInterface $qb |
||
244 | * |
||
245 | * @return string |
||
246 | */ |
||
247 | 34 | private function compileInsertSelect(BuilderInterface $qb) |
|
255 | |||
256 | /** |
||
257 | * @param BuilderInterface $qb |
||
258 | * |
||
259 | * @return string |
||
260 | */ |
||
261 | 34 | private function compileInsertColumns(BuilderInterface $qb) |
|
269 | } |