Skip to content
This repository has been archived by the owner on Mar 9, 2022. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #8 from dlvenable/master
Support replication's doc_ids property
  • Loading branch information
snej committed Jan 20, 2012
2 parents a3f8e0a + fa96c75 commit 90e5c49
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions Couch/CouchPersistentReplication.h
Expand Up @@ -52,6 +52,9 @@ typedef enum {
Should be a JSON-compatible dictionary. */
@property (copy) NSDictionary* query_params;

/** Sets the documents to specify as part of the replication. */
@property (copy) NSArray *doc_ids;

/** Sets the "user_ctx" property of the replication, which identifies what privileges it will run with when accessing the local server. To replicate design documents, this should be set to a value with "_admin" in the list of roles.
The server will not let you specify privileges you don't have, so the request to create the replication must be made with credentials that match what you're setting here, unless the server is in no-authentication "admin party" mode.
See <https://gist.github.com/832610>, section 8, for details.
Expand Down
2 changes: 1 addition & 1 deletion Couch/CouchPersistentReplication.m
Expand Up @@ -26,7 +26,7 @@ - (void) setStatusString: (NSString*)status;
@implementation CouchPersistentReplication


@dynamic source, target, create_target, continuous, filter, query_params;
@dynamic source, target, create_target, continuous, filter, query_params, doc_ids;
@synthesize state=_state, completed=_completed, total=_total;


Expand Down

0 comments on commit 90e5c49

Please sign in to comment.