How do I turn off the SQLite Write ahead logging (WAL) in Core Data using Apples new programming language Swift?
In ObjC I used to pass in the key value pair @\"jour
One hint, make sure you pass a Dictionary into NSSQLitePragmasOption. e.g.
url = NSBundle.mainBundle().URLForResource(name, withExtension: "momd")
let coordinator = NSPersistentStoreCoordinator(managedObjectModel: NSManagedObjectModel(contentsOfURL: url!)!)
var err: NSError? = nil
url = dataDir.URLByAppendingPathComponent(name + ".sqlite")
options = [NSMigratePersistentStoresAutomaticallyOption: true, NSInferMappingModelAutomaticallyOption: true, NSSQLitePragmasOption: ["journal_mode": "DELETE"]]
coordinator.addPersistentStoreWithType(NSSQLiteStoreType, configuration: nil, URL: url, options: options, error: &err)