require explicit parameter for fileName when calling addSQLiteStore() and it's variants

This commit is contained in:
John Estropia
2015-07-09 21:28:37 +09:00
parent 35fbaf9513
commit b2a190ea33
11 changed files with 19 additions and 19 deletions

View File

@@ -16,7 +16,7 @@ private struct Static {
let dataStack = DataStack()
dataStack.addSQLiteStoreAndWait(
"TimeZoneDemo.sqlite",
fileName: "TimeZoneDemo.sqlite",
configuration: "FetchingAndQueryingDemo",
resetStoreOnMigrationFailure: true
)

View File

@@ -15,7 +15,7 @@ private struct Static {
static let palettes: ListMonitor<Palette> = {
CoreStore.addSQLiteStoreAndWait(
"ColorsDemo.sqlite",
fileName: "ColorsDemo.sqlite",
configuration: "ObservingDemo",
resetStoreOnMigrationFailure: true
)

View File

@@ -30,7 +30,7 @@ class CustomLoggerViewController: UIViewController, CoreStoreLogger {
super.viewDidLoad()
self.dataStack.addSQLiteStoreAndWait("emptyStore.sqlite")
self.dataStack.addSQLiteStoreAndWait(fileName: "emptyStore.sqlite")
CoreStore.logger = self
}
@@ -109,7 +109,7 @@ class CustomLoggerViewController: UIViewController, CoreStoreLogger {
}
case .Some(1):
self.dataStack.addSQLiteStoreAndWait("emptyStore.sqlite", configuration: "invalidStore")
self.dataStack.addSQLiteStoreAndWait(fileName: "emptyStore.sqlite", configuration: "invalidStore")
case .Some(2):
self.dataStack.beginAsynchronous { (transaction) -> Void in

View File

@@ -114,7 +114,7 @@ class MigrationsDemoViewController: UITableViewController {
self.setEnabled(false)
dataStack.addSQLiteStore(
"MigrationDemo.sqlite",
fileName: "MigrationDemo.sqlite",
completion: { [weak self] (result) -> Void in
guard let strongSelf = self else {

View File

@@ -19,12 +19,12 @@ private struct Static {
let dataStack = DataStack(modelName: "StackSetupDemo")
dataStack.addSQLiteStoreAndWait(
"AccountsDemo_FB_Male.sqlite",
fileName: "AccountsDemo_FB_Male.sqlite",
configuration: maleConfiguration,
resetStoreOnMigrationFailure: true
)
dataStack.addSQLiteStoreAndWait(
"AccountsDemo_FB_Female.sqlite",
fileName: "AccountsDemo_FB_Female.sqlite",
configuration: femaleConfiguration,
resetStoreOnMigrationFailure: true
)
@@ -53,12 +53,12 @@ private struct Static {
let dataStack = DataStack(modelName: "StackSetupDemo")
dataStack.addSQLiteStoreAndWait(
"AccountsDemo_TW_Male.sqlite",
fileName: "AccountsDemo_TW_Male.sqlite",
configuration: maleConfiguration,
resetStoreOnMigrationFailure: true
)
dataStack.addSQLiteStoreAndWait(
"AccountsDemo_TW_Female.sqlite",
fileName: "AccountsDemo_TW_Female.sqlite",
configuration: femaleConfiguration,
resetStoreOnMigrationFailure: true
)

View File

@@ -19,7 +19,7 @@ private struct Static {
static let placeController: ObjectMonitor<Place> = {
CoreStore.addSQLiteStoreAndWait(
"PlaceDemo.sqlite",
fileName: "PlaceDemo.sqlite",
configuration: "TransactionsDemo",
resetStoreOnMigrationFailure: true
)