Skip to content

Push replication #3

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 6 commits into
base: data-services-proto
Choose a base branch
from

Conversation

jpoyau
Copy link

@jpoyau jpoyau commented Mar 8, 2012

Add code it implement pull/push replication. It implements a service that allows a node to push it data through couchdb replication to any couchdb database. To pull data from any node that implements this service one needs to do a post to<node_url>/push_to the following data:

{
   "destination_database_url": "<url>",  //couchdb target database url required
   "include_exclude"': true/false,
   "filter": // array of filter rules optional
         [
              {"filter_key":"string", // REGEX that matches names in the
                                            // resource data description
                                            // required
              "filter_value": "string" // REGEX that matches values in the
                                            // resource data description
                                            // optional, if not present, any value matches
                }
         ],
   "predicate": "function(doc){... return true;}" // javascript predicate function that takes a 
                                                                // doc and return true or false optional
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant