objective c - Can I use my remote cloudant(nosqlDB) path for CDTDatastoreManager directory in IBM Bluemix SDK? -
i migrating application backend parse.com ibm bluemix. not want cdtdatastore take control of persistent store(core data) exist.
as per blue mix documentation:
nserror *outerror = nil; nsfilemanager *filemanager= [nsfilemanager defaultmanager]; nsurl *documentsdir = [[filemanager urlsfordirectory:nsdocumentdirectory indomains:nsuserdomainmask] lastobject]; nsurl *storeurl = [documentsdir urlbyappendingpathcomponent:@"cloudant-sync-datastore"]; nsstring *path = [storeurl path];
can make "storeurl" remote database url(https://apikey:apipassword@username.cloudant.com/my_database) i.e cloudant database? must in position create,update,delete,documents in remote database directly out using cdtreplicatorfactory
, no offline storage.
please let me know if further architectural design of application required.
this pod should looking for. https://cocoapods.org/?q=objectivecloudant
Comments
Post a Comment