Skip to content

Instantly share code, notes, and snippets.

@xpqz
Created April 17, 2015 11:25
Show Gist options
  • Save xpqz/f8b304353080c3963a45 to your computer and use it in GitHub Desktop.
Save xpqz/f8b304353080c3963a45 to your computer and use it in GitHub Desktop.
Cloudant helper class .h
//
// Cloudant.h
//
//
// Created by Stefan Kruger on 12/03/2015
//
//
#import <Foundation/Foundation.h>
#import "CloudantSync.h"
#import "CDTDatastore+Query.h"
#import "CDTQResultSet.h"
@interface Cloudant : NSObject
- (BOOL)replicateFromURL:(NSURL *)remoteDatabaseURL delegate:(id<CDTReplicatorDelegate>)dlg error:(NSError *__autoreleasing *)error;
- (BOOL)replicateToURL:(NSURL *)remoteDatabaseURL delegate:(id<CDTReplicatorDelegate>)dlg error:(NSError *__autoreleasing *)error;
- (CDTQResultSet *)find:(NSDictionary *)query;
- (CDTDocumentRevision *)saveDocumentWithBody:(NSDictionary *)body error:(NSError *__autoreleasing *)error;
@end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment