| @@ 152-158 (lines=7) @@ | ||
| 149 | * |
|
| 150 | * Postgres uses custom insert query builder in order to return value of inserted row. |
|
| 151 | */ |
|
| 152 | public function insertBuilder(string $prefix, array $parameters = []): InsertQuery |
|
| 153 | { |
|
| 154 | return $this->factory->make( |
|
| 155 | PostgresQuery::class, |
|
| 156 | ['driver' => $this, 'compiler' => $this->queryCompiler($prefix),] + $parameters |
|
| 157 | ); |
|
| 158 | } |
|
| 159 | ||
| 160 | /** |
|
| 161 | * {@inheritdoc} |
|
| @@ 149-155 (lines=7) @@ | ||
| 146 | * |
|
| 147 | * @return InsertQuery |
|
| 148 | */ |
|
| 149 | public function insertBuilder(string $prefix, array $parameters = []): InsertQuery |
|
| 150 | { |
|
| 151 | return $this->factory->make( |
|
| 152 | InsertQuery::class, |
|
| 153 | ['driver' => $this, 'compiler' => $this->queryCompiler($prefix)] + $parameters |
|
| 154 | ); |
|
| 155 | } |
|
| 156 | ||
| 157 | /** |
|
| 158 | * Get SelectQuery builder with driver specific query compiler. |
|
| @@ 166-172 (lines=7) @@ | ||
| 163 | * |
|
| 164 | * @return SelectQuery |
|
| 165 | */ |
|
| 166 | public function selectBuilder(string $prefix, array $parameters = []): SelectQuery |
|
| 167 | { |
|
| 168 | return $this->factory->make( |
|
| 169 | SelectQuery::class, |
|
| 170 | ['driver' => $this, 'compiler' => $this->queryCompiler($prefix)] + $parameters |
|
| 171 | ); |
|
| 172 | } |
|
| 173 | ||
| 174 | /** |
|
| 175 | * Get DeleteQuery builder with driver specific query compiler. |
|
| @@ 183-190 (lines=8) @@ | ||
| 180 | * |
|
| 181 | * @return DeleteQuery |
|
| 182 | */ |
|
| 183 | public function deleteBuilder(string $prefix, array $parameters = []): DeleteQuery |
|
| 184 | { |
|
| 185 | return $this->factory->make( |
|
| 186 | DeleteQuery::class, |
|
| 187 | ['driver' => $this, 'compiler' => $this->queryCompiler($prefix)] + $parameters |
|
| 188 | ); |
|
| 189 | } |
|
| 190 | ||
| 191 | /** |
|
| 192 | * Get UpdateQuery builder with driver specific query compiler. |
|
| 193 | * |
|
| @@ 200-206 (lines=7) @@ | ||
| 197 | * |
|
| 198 | * @return UpdateQuery |
|
| 199 | */ |
|
| 200 | public function updateBuilder(string $prefix, array $parameters = []): UpdateQuery |
|
| 201 | { |
|
| 202 | return $this->factory->make( |
|
| 203 | UpdateQuery::class, |
|
| 204 | ['driver' => $this, 'compiler' => $this->queryCompiler($prefix)] + $parameters |
|
| 205 | ); |
|
| 206 | } |
|
| 207 | ||
| 208 | /** |
|
| 209 | * Handler responsible for schema related operations. Handlers responsible for sync flow of |
|