How can I achieve the following with Couchbase-Lite?RESTResource* allDbsResource = [[RESTResource alloc] initWithParent:self.couchServer relativePath:@"_all_dbs"];
NSMutableSet* allDbs = [[NSMutableSet alloc] initWithArray:[allDbsResource GET].responseBody.fromJSON];
And Since there is no server involved in CBL, How do you suggest me to upgrade from CouchServer, which is used as a connection manager?
RESTResource* resource = [[RESTResource alloc] initWithURL:[NSURL URLWithString:URL]];
// prepare data to be posted to the server
NSMutableDictionary *postData = [[NSMutableDictionary alloc] init];
[postData setValue:"deviceID" forKey:@"deviceid"];
[postData setValue:"email" forKey:@"email"];
RESTOperation* op = [resource POSTJSON:postData parameters:nil];
if ([[op start] wait]) {
NSDictionary* response = op.responseBody.fromJSON;
Well, I'll use CouchCocoa. But then how do you suggest me to handle replication? I need to establish a persistent replication between Couchbase Lite and Remote CouchDB.
Secondly, Remote CouchDB's view has "design document name and view name"(Eg: designDocName001/viewName, designDocName002/viewName) and Couchbase-Lite has "no design document name". So, after replicating remote database to local, how can I access/write design documents/CBLViews ?
--
You received this message because you are subscribed to the Google Groups "Mobile Couchbase" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mobile-couchba...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.