| @@ 198-204 (lines=7) @@ | ||
| 195 | * |
|
| 196 | * @return InsertQuery |
|
| 197 | */ |
|
| 198 | public function insertBuilder(string $prefix, array $parameters = []): InsertQuery |
|
| 199 | { |
|
| 200 | return $this->factory->make( |
|
| 201 | InsertQuery::class, |
|
| 202 | ['driver' => $this, 'compiler' => $this->queryCompiler($prefix)] + $parameters |
|
| 203 | ); |
|
| 204 | } |
|
| 205 | ||
| 206 | /** |
|
| 207 | * Get SelectQuery builder with driver specific query compiler. |
|
| @@ 215-221 (lines=7) @@ | ||
| 212 | * |
|
| 213 | * @return SelectQuery |
|
| 214 | */ |
|
| 215 | public function selectBuilder(string $prefix, array $parameters = []): SelectQuery |
|
| 216 | { |
|
| 217 | return $this->factory->make( |
|
| 218 | SelectQuery::class, |
|
| 219 | ['driver' => $this, 'compiler' => $this->queryCompiler($prefix)] + $parameters |
|
| 220 | ); |
|
| 221 | } |
|
| 222 | ||
| 223 | /** |
|
| 224 | * Get DeleteQuery builder with driver specific query compiler. |
|
| @@ 232-239 (lines=8) @@ | ||
| 229 | * |
|
| 230 | * @return DeleteQuery |
|
| 231 | */ |
|
| 232 | public function deleteBuilder(string $prefix, array $parameters = []): DeleteQuery |
|
| 233 | { |
|
| 234 | ||
| 235 | return $this->factory->make( |
|
| 236 | DeleteQuery::class, |
|
| 237 | ['driver' => $this, 'compiler' => $this->queryCompiler($prefix)] + $parameters |
|
| 238 | ); |
|
| 239 | } |
|
| 240 | ||
| 241 | /** |
|
| 242 | * Get UpdateQuery builder with driver specific query compiler. |
|
| @@ 250-256 (lines=7) @@ | ||
| 247 | * |
|
| 248 | * @return UpdateQuery |
|
| 249 | */ |
|
| 250 | public function updateBuilder(string $prefix, array $parameters = []): UpdateQuery |
|
| 251 | { |
|
| 252 | return $this->factory->make( |
|
| 253 | UpdateQuery::class, |
|
| 254 | ['driver' => $this, 'compiler' => $this->queryCompiler($prefix)] + $parameters |
|
| 255 | ); |
|
| 256 | } |
|
| 257 | ||
| 258 | /** |
|
| 259 | * Handler responsible for schema related operations. Handlers responsible for sync flow of |
|
| @@ 131-137 (lines=7) @@ | ||
| 128 | * |
|
| 129 | * Postgres uses custom insert query builder in order to return value of inserted row. |
|
| 130 | */ |
|
| 131 | public function insertBuilder(string $prefix, array $parameters = []): InsertQuery |
|
| 132 | { |
|
| 133 | return $this->factory->make( |
|
| 134 | PostgresQuery::class, |
|
| 135 | ['driver' => $this, 'compiler' => $this->queryCompiler($prefix),] + $parameters |
|
| 136 | ); |
|
| 137 | } |
|
| 138 | ||
| 139 | /** |
|
| 140 | * {@inheritdoc} |
|