/* * Copyright (C) 2011 Davide Bertola * * Authors: * Davide Bertola * Joe Noon * * This library is available under the terms of the MIT License (2008). * See http://opensource.org/licenses/alphabetical for full text. */ #import #import "sqlite3.h" #ifdef PHONEGAP_FRAMEWORK #import #import #import #import #else #import "PGPlugin.h" #import "JSON.h" #import "PhoneGapDelegate.h" #import "File.h" #endif @interface SQLitePlugin : PGPlugin { NSMutableDictionary *openDBs; } @property (nonatomic, copy) NSMutableDictionary *openDBs; @property (nonatomic, retain) NSString *appDocsPath; -(void) open:(NSMutableArray*)arguments withDict:(NSMutableDictionary*)options; -(void) backgroundExecuteSqlBatch:(NSMutableArray*)arguments withDict:(NSMutableDictionary*)options; -(void) backgroundExecuteSql:(NSMutableArray*)arguments withDict:(NSMutableDictionary*)options; -(void) executeSqlBatch:(NSMutableArray*)arguments withDict:(NSMutableDictionary*)options; -(void) executeSql:(NSMutableArray*)arguments withDict:(NSMutableDictionary*)options; -(void) _executeSqlBatch:(NSMutableDictionary*)options; -(void) _executeSql:(NSMutableDictionary*)options; -(void) close: (NSMutableArray*)arguments withDict:(NSMutableDictionary*)options; -(void) respond: (id)cb withString:(NSString *)str withType:(NSString *)type; -(id) getDBPath:(id)dbFile; @end