 import Swift
 import CoreData
 
+enum CDJournalMode  : String {
+    case WAL = "WAL"
+    case DELETE = "DELETE"
+}
 
 internal extension MCCoreDataStackManager
 {

        }
    }
    
    internal func autoMigrationOptions_WAL() -> Dictionary<NSObject, AnyObject>
    {
        
        var sqliteOptions = Dictionary<NSObject, AnyObject>()
        sqliteOptions["journal_mode"] = "WAL"
        
        var persistentStoreOptions = Dictionary<NSObject, AnyObject>()
        persistentStoreOptions[NSMigratePersistentStoresAutomaticallyOption] = true
        persistentStoreOptions[NSInferMappingModelAutomaticallyOption] = true
        persistentStoreOptions[NSSQLitePragmasOption] = sqliteOptions
        return persistentStoreOptions
    }
    
    internal func autoMigrationOptions_DELETE() -> Dictionary<NSObject, AnyObject>
    {
        
        var sqliteOptions = Dictionary<NSObject, AnyObject>()
        sqliteOptions["journal_mode"] = "DELETE"
        
        var persistentStoreOptions = Dictionary<NSObject, AnyObject>()
        persistentStoreOptions[NSMigratePersistentStoresAutomaticallyOption] = true

                        
                        if (!isModelCompatible)
                        {
                            options = self.autoMigrationWithJournalMode("DELETE")
                        }
                    }
                }
