// Header exposed for unit testing only
+#if __OBJC2__
+
#import <Foundation/Foundation.h>
#import <sqlite3.h>
SFSQLiteSynchronousModeFull = 2
};
-@protocol SFSQLiteDelegate
+@protocol SFSQLiteDelegate <NSObject>
@property (nonatomic, readonly) SInt32 userVersion;
- (BOOL)migrateDatabase:(SFSQLite *)db fromVersion:(SInt32)version;
// Wrapper around the SQLite API. Typically subclassed to add table accessor methods.
@interface SFSQLite : NSObject {
+@private
id<SFSQLiteDelegate> _delegate;
NSString* _path;
NSString* _schema;
- (SInt32)dbUserVersion;
@end
+
+#endif