The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

DB::CouchDB::Result - a result object for DB::CouchDB

DESCRIPTION

Gives you some convenience functions for dealing with CouchDB results

SYNOPSIS

    my $rs = $db->get_doc($docname);

    if ($rs->err) {
        die $rs->errstr;
    }

    my $docid = $rs->{_id};
    my %result = %$rs;

Methods

err

Returns the error from couchdb if there was an error.

errstr

Returns the error string from couchdb if there was an error.