Questions tagged [couchcocoa]

An Objective-C API To Apache CouchDB

CouchCocoa is an Objective-C API for working with CouchDB on iOS and Mac OS.

9 questions
17
votes
2 answers

How to create a MonoTouch binding from a .framework

I downloaded TouchDB, a "lightweight Apache CouchDB-compatible database engine suitable for embedding into mobile or desktop apps", which gives me a bunch of .framework folders (CouchCocoa.framework, TouchDB.framework and…
Louis Boux
  • 1,228
  • 1
  • 12
  • 26
5
votes
1 answer

Delete multiple documents in CouchDB

I've a "best practice" question on CouchDB (actually I'm using TouchDB a CouchDB port to iOS), when using CouchCocoa framework. I need to delete a bunch of documents that I get via a query. I know 3 ways to do this: 1) put all the documents into an…
2
votes
1 answer

Get Attachment from documentProperties in couchCocoa

I have a document properties downloaded from a view, so I have the actual JSON from the doc, including the ID and Rev ID. I don't have the actual CouchDocument, though. The document has an attachment, and I know the name of it. I'm trying to…
Eduardo Scoz
  • 24,653
  • 6
  • 47
  • 62
0
votes
0 answers

Swift Undefined architecture x86_64 in Xcode 6 Beta 5

Steps to reproduce: Create a new single page application in swift using Xcode 6 beta 5 Add TouchDB.framework and CouchCocoa.framework to project by following this steps Add a new swift file to project and type Create a bridging header file and…
Robin
  • 21
  • 1
  • 1
0
votes
2 answers

Difference between CBLQuery's(a.k.a CouchQuery's) documentID and sourceDocumentID

I was trying to wrap my head around the difference between documentID and sourceDocumentID but just couldn't. Should I access the documentID of the row or sourceDocumentID? I'm trying to implement pagination in my iOS app (i.e something similar to…
Ajith Renjala
  • 4,934
  • 5
  • 34
  • 42
0
votes
1 answer

Couchbase Lite iOS: CouchCocoa's unversionedURL and CouchbaseLite's bodyURL, are they same?

I've been working on Couchbase-Lite (aka TouchDB) for an iOS app. Meanwhile, I was trying to figure out what's new in CBL and faced following question: @property (readonly) NSURL* bodyURL; //CBLAttachment and @property (readonly) NSURL*…
Ajith Renjala
  • 4,934
  • 5
  • 34
  • 42
0
votes
1 answer

couchbase ios replication error

Im new to couchbase and have been struggeling with an error for hours. I create a user_profile_<-insert guid here-> document and save it successfully to local mobile couchbase db with the following test data: { "_id" =…
t3d
  • 178
  • 10
0
votes
2 answers

CouchDB delete and recreate a document

I'm trying to avoid revisions building up in my CouchDB, and also so I can use TouchDB's "bulk pull" for replication (it bulk-pulls on all 1st-revs.) Would it be bad practice to just delete a document, and recreate it rather than modifying it, in…
ewindsor
  • 885
  • 10
  • 24
0
votes
2 answers

Cloudant / CouchDB "pull" replication for 600+ documents to iPhone

I'm using Cloudant and I'm struggling to pull/replicate 600 documents from server to my iPhone. First, it's pretty slow because it has to go one-document-at-a-time, and Second Cloudant was giving me "timeouts" after the 100th-or-so REST request. …
ewindsor
  • 885
  • 10
  • 24