Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/CouchDB/Client.pm
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ package CouchDB::Client;
use strict;
use warnings;

our $VERSION = '0.09';
our $VERSION = '0.10';

use JSON::Any qw(XS JSON DWIW);
use LWP::UserAgent qw();
Expand Down
5 changes: 4 additions & 1 deletion lib/CouchDB/Client/DB.pm
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ sub replicate {
confess("Either source or target is required.");
}

my @flags = ('continuous');
my @flags = ('continuous', 'cancel');

my ($M,$m,undef) = split(/\./,$self->{client}->serverInfo()->{version});
if ($m > 10) {
Expand Down Expand Up @@ -357,6 +357,9 @@ By default, replication is a one time event. New modifications to the origin da
appear in the replicated database. Setting C<continuous> to a true value will cause new changes in
the origin database to be reflected in the replicated one.

You may cancel a previously created replication by setting C<cancel> to 'true'. If the replication does
not already exist, C<replicate> will die with the corresponding HTTP message (e.g. '404 Object Not Found').

Note: Support for the C<create_target> flag (which was added after version 0.10) is included, but untested.

=item newDoc $ID?, $REV?, $DATA?, $ATTACHMENTS?
Expand Down