title: How to turn off Core Data Write-Ahead logging in Swift using options dictionary?
body: <p>How do I turn off the SQLite Write ahead logging (WAL) in Core Data using Apples new programming language Swift?</p>
  
  <p>In ObjC I used to pass in the key value pair @"journal_mode": @"DELETE" in the options dictionary:</p>
  
  <pre><code>[storeCoordinator addPersistentStoreWithType:NSSQLiteStoreType
                                 configuration:nil
                                           URL:[self databaseURL]
                                       options:@{NSMigratePersistentStoresAutomaticallyOption: @YES,
                                             NSInferMappingModelAutomaticallyOption: @YES,
                                             @"journal_mode": @"DELETE"}
                                         error:&amp;error]
  </code></pre>
  
  <p>But in Swift only the same types are allowed in a NSDictionary, so mixing BOOL (that is mapped to NSNumber) and NSString is not possible.</p>
  
  <p>Any ideas?</p>