Couchbase
view release on metacpan or search on metacpan
lib/Couchbase/Bucket.pm view on Meta::CPAN
753754755756757758759760761762763764765766767768769770771772773
'SELECT *, META().id FROM travel WHERE travel.country = $country '
,
# Placeholder values
{
country
=>
"Ecuador"
, },
# Query options
{
_host
=>
"localhost:8093"
}
);
foreach
my
$row
(@{
$rv
->rows}) {
# do something with decoded JSON
}
The C<queryargs> parameter can either be a hashref of named placeholders
(omiting of course, the leading C<$> which is handled internally), or it can
be an arrayref of positional placeholders (
if
your query uses positional
placeholders).
The C<queryopts> is a set of other modifiers
for
the query. Most of these
are sent to the server. One special parameter is the C<_host> parameter, which
( run in 0.226 second using v1.01-cache-2.11-cpan-496ff517765 )