|
|
@@ -40,6 +40,7 @@ + (instancetype)databaseQueueWithPath:(NSString*)aPath flags:(int)openFlags {
|
|
|
return q;
|
|
|
}
|
|
|
|
|
|
+
|
|
|
- (instancetype)initWithPath:(NSString*)aPath flags:(int)openFlags {
|
|
|
|
|
|
self = [super init];
|
|
|
@@ -74,6 +75,11 @@ - (instancetype)initWithPath:(NSString*)aPath {
|
|
|
return [self initWithPath:aPath flags:SQLITE_OPEN_READWRITE | SQLITE_OPEN_CREATE];
|
|
|
}
|
|
|
|
|
|
+- (instancetype)init {
|
|
|
+ return [self initWithPath:nil];
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
- (void)dealloc {
|
|
|
|
|
|
FMDBRelease(_db);
|