mirror of
https://github.com/JohnEstropia/CoreStore.git
synced 2026-03-17 23:13:52 +01:00
require explicit parameter for fileName when calling addSQLiteStore() and it's variants
This commit is contained in:
@@ -16,7 +16,7 @@ private struct Static {
|
||||
|
||||
let dataStack = DataStack()
|
||||
dataStack.addSQLiteStoreAndWait(
|
||||
"TimeZoneDemo.sqlite",
|
||||
fileName: "TimeZoneDemo.sqlite",
|
||||
configuration: "FetchingAndQueryingDemo",
|
||||
resetStoreOnMigrationFailure: true
|
||||
)
|
||||
|
||||
@@ -15,7 +15,7 @@ private struct Static {
|
||||
static let palettes: ListMonitor<Palette> = {
|
||||
|
||||
CoreStore.addSQLiteStoreAndWait(
|
||||
"ColorsDemo.sqlite",
|
||||
fileName: "ColorsDemo.sqlite",
|
||||
configuration: "ObservingDemo",
|
||||
resetStoreOnMigrationFailure: true
|
||||
)
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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
|
||||
)
|
||||
|
||||
@@ -19,7 +19,7 @@ private struct Static {
|
||||
static let placeController: ObjectMonitor<Place> = {
|
||||
|
||||
CoreStore.addSQLiteStoreAndWait(
|
||||
"PlaceDemo.sqlite",
|
||||
fileName: "PlaceDemo.sqlite",
|
||||
configuration: "TransactionsDemo",
|
||||
resetStoreOnMigrationFailure: true
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user