|
@@ 344-351 (lines=8) @@
|
| 341 |
|
} |
| 342 |
|
$query = \CouchbaseN1qlQuery::fromString($query); |
| 343 |
|
|
| 344 |
|
if ($this->breakingVersion()) { |
| 345 |
|
$query->consistency($this->consistency); |
| 346 |
|
$query->namedParams(['parameters' => $bindings]); |
| 347 |
|
$result = $this->executeQuery($query); |
| 348 |
|
$this->metrics = (isset($result->metrics)) ? $result->metrics : []; |
| 349 |
|
|
| 350 |
|
return (isset($result->rows[0])) ? $result->rows[0] : false; |
| 351 |
|
} |
| 352 |
|
// @codeCoverageIgnoreStart |
| 353 |
|
$query->consistency($this->consistency); |
| 354 |
|
$bucket = $this->openBucket($this->bucket); |
|
@@ 379-386 (lines=8) @@
|
| 376 |
|
} |
| 377 |
|
$query = \CouchbaseN1qlQuery::fromString($query); |
| 378 |
|
|
| 379 |
|
if ($this->breakingVersion()) { |
| 380 |
|
$query->consistency($this->consistency); |
| 381 |
|
$query->positionalParams($bindings); |
| 382 |
|
$result = $this->executeQuery($query); |
| 383 |
|
$this->metrics = (isset($result->metrics)) ? $result->metrics : []; |
| 384 |
|
|
| 385 |
|
return (isset($result->rows[0])) ? $result->rows[0] : false; |
| 386 |
|
} |
| 387 |
|
|
| 388 |
|
// @codeCoverageIgnoreStart |
| 389 |
|
$query->consistency($this->consistency); |