|
22 | 22 | use Illuminate\Support\Facades\Log; |
23 | 23 | use PDPhilip\Elasticsearch\Exceptions\BulkInsertQueryException; |
24 | 24 | use PDPhilip\Elasticsearch\Exceptions\QueryException; |
| 25 | +use PDPhilip\Elasticsearch\Laravel\Compatibility\Connection\ConnectionCompatibility; |
25 | 26 | use PDPhilip\Elasticsearch\Query\Builder; |
26 | 27 | use PDPhilip\Elasticsearch\Query\Processor; |
27 | 28 | use PDPhilip\Elasticsearch\Schema\Blueprint; |
|
40 | 41 | */ |
41 | 42 | class Connection extends BaseConnection |
42 | 43 | { |
| 44 | + use ConnectionCompatibility; |
43 | 45 | use HasOptions; |
44 | 46 |
|
45 | 47 | const VALID_AUTH_TYPES = ['http', 'cloud']; |
@@ -319,31 +321,23 @@ public function getSchemaBuilder() |
319 | 321 | return new Schema\Builder($this); |
320 | 322 | } |
321 | 323 |
|
322 | | - /** |
323 | | - * @return Schema\Grammars\Grammar |
324 | | - */ |
325 | | - public function getSchemaGrammar() |
326 | | - { |
327 | | - return new Schema\Grammars\Grammar; |
328 | | - } |
329 | | - |
330 | 324 | /** {@inheritdoc} */ |
331 | 325 | protected function getDefaultPostProcessor(): Query\Processor |
332 | 326 | { |
333 | 327 | return new Query\Processor; |
334 | 328 | } |
335 | | - |
336 | | - /** {@inheritdoc} */ |
337 | | - protected function getDefaultQueryGrammar(): Query\Grammar |
338 | | - { |
339 | | - return new Query\Grammar; |
340 | | - } |
341 | | - |
342 | | - /** {@inheritdoc} */ |
343 | | - protected function getDefaultSchemaGrammar(): Schema\Grammars\Grammar |
344 | | - { |
345 | | - return new Schema\Grammars\Grammar; |
346 | | - } |
| 329 | + // |
| 330 | + // /** {@inheritdoc} */ |
| 331 | + // protected function getDefaultQueryGrammar(): Query\Grammar |
| 332 | + // { |
| 333 | + // return new Query\Grammar; |
| 334 | + // } |
| 335 | + // |
| 336 | + // /** {@inheritdoc} */ |
| 337 | + // protected function getDefaultSchemaGrammar(): Schema\Grammars\Grammar |
| 338 | + // { |
| 339 | + // return new Schema\Grammars\Grammar; |
| 340 | + // } |
347 | 341 |
|
348 | 342 | // ---------------------------------------------------------------------- |
349 | 343 | // Connection Setters |
|
0 commit comments