@@ 300-309 (lines=10) @@ | ||
297 | } |
|
298 | $query = \CouchbaseN1qlQuery::fromString($query); |
|
299 | ||
300 | if ($this->breakingVersion()) { |
|
301 | $query->consistency($this->consistency); |
|
302 | $bucket = $this->openBucket($this->bucket); |
|
303 | $this->registerOption($bucket); |
|
304 | $query->namedParams(['parameters' => $bindings]); |
|
305 | $result = $bucket->query($query); |
|
306 | $this->metrics = (isset($result->metrics)) ? $result->metrics : []; |
|
307 | ||
308 | return (isset($result->rows[0])) ? $result->rows[0] : false; |
|
309 | } |
|
310 | // @codeCoverageIgnoreStart |
|
311 | $query->consistency($this->consistency); |
|
312 | $bucket = $this->openBucket($this->bucket); |
|
@@ 335-344 (lines=10) @@ | ||
332 | } |
|
333 | $query = \CouchbaseN1qlQuery::fromString($query); |
|
334 | ||
335 | if ($this->breakingVersion()) { |
|
336 | $query->consistency($this->consistency); |
|
337 | $query->positionalParams($bindings); |
|
338 | $bucket = $this->openBucket($this->bucket); |
|
339 | $this->registerOption($bucket); |
|
340 | $result = $bucket->query($query); |
|
341 | $this->metrics = (isset($result->metrics)) ? $result->metrics : []; |
|
342 | ||
343 | return (isset($result->rows[0])) ? $result->rows[0] : false; |
|
344 | } |
|
345 | // @codeCoverageIgnoreStart |
|
346 | $query->consistency($this->consistency); |
|
347 | $query->options['args'] = $bindings; |