Couchbase

 view release on metacpan or  search on metacpan

lib/Couchbase/Bucket.pm  view on Meta::CPAN

753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
        '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 )