NAME

Couch::DB::Mojolicious - CouchDB backend for Mojolicious

INHERITANCE

Couch::DB::Mojolicious
  is a Couch::DB

SYNOPSIS

use Couch::DB::Mojolicious ();
my $couch = Couch::DB::Mojolicious->new;

# From here on: see the Couch::DB base class
my $db    = $couch->db('my-db');

DESCRIPTION

This is the Couch::DB implementation based on the Mojolicious (=Mojo) event framework. It uses many Mojo specific modules, like Mojo::URL and Mojo::UserAgent.

Extends "DESCRIPTION" in Couch::DB.

METHODS

Extends "METHODS" in Couch::DB.

Constructors

Extends "Constructors" in Couch::DB.

$class->new(%options)

Inherited, see "Constructors" in Couch::DB

-Option  --Defined in     --Default
 api       Couch::DB        <required>
 auth      Couch::DB        'BASIC'
 password  Couch::DB        undef
 server    Couch::DB        "http://127.0.0.1:5984"
 to_json   Couch::DB        +{ }
 to_perl   Couch::DB        +{ }
 to_query  Couch::DB        +{ }
 username  Couch::DB        undef
api => $version
auth => 'BASIC'|'COOKIE'
password => STRING
server => URL
to_json => HASH
to_perl => HASH
to_query => HASH
username => STRING

Accessors

Extends "Accessors" in Couch::DB.

$obj->api()

Inherited, see "Accessors" in Couch::DB

Interface starting points

Extends "Interface starting points" in Couch::DB.

$obj->cluster()

Inherited, see "Interface starting points" in Couch::DB

$obj->createClient(%options)

Inherited, see "Interface starting points" in Couch::DB

$obj->db($name, %options)

Inherited, see "Interface starting points" in Couch::DB

$obj->node($name)

Inherited, see "Interface starting points" in Couch::DB

Ungrouped calls

Extends "Ungrouped calls" in Couch::DB.

$obj->freshUUID(%options)

Inherited, see "Ungrouped calls" in Couch::DB

$obj->freshUUIDs($count, %options)

Inherited, see "Ungrouped calls" in Couch::DB

$obj->requestUUIDs($count, %options)

Inherited, see "Ungrouped calls" in Couch::DB

$obj->searchAnalyze(\%config, %options)

Inherited, see "Ungrouped calls" in Couch::DB

Processing

Extends "Processing" in Couch::DB.

$obj->addClient($client)

Inherited, see "Processing" in Couch::DB

$obj->call($method, $path, %options)

Inherited, see "Processing" in Couch::DB

$obj->check($condition, $change, $version, $what)

Inherited, see "Processing" in Couch::DB

$obj->client($name)

Inherited, see "Processing" in Couch::DB

$obj->clients(%options)

Inherited, see "Processing" in Couch::DB

$obj->jsonText($json, %options)

Inherited, see "Processing" in Couch::DB

$obj->listToPerl($set, $type, @data|\@data)

Inherited, see "Processing" in Couch::DB

$obj->toJSON(\%data, $type, @keys)

Inherited, see "Processing" in Couch::DB

$obj->toPerl(\%data, $type, @keys)

Inherited, see "Processing" in Couch::DB

$obj->toQuery(\%data, $type, @keys)

Inherited, see "Processing" in Couch::DB

Server connections

The server is a Mojo::URL, or will be transformed into one. The user_agent is a Mojo::UserAgent.

DETAILS

Extends "DETAILS" in Couch::DB.

DIAGNOSTICS

Warning: $what got deprecated in api $release.

Cast by check()

Error: $what got removed in $release, but you specified api $api.

Cast by check()

Warning: $what was introduced in $release, but you specified api $api.

Cast by check()

Error: No clients can run $method $path.

Cast by call()

SEE ALSO

This module is part of Couch-DB version 0.201, built on January 30, 2026. Website: http://perl.overmeer.net/CPAN/

LICENSE

For contributors see file ChangeLog.

This software is copyright (c) 2024-2026 by Mark Overmeer.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.