WIP: CSImportableUniqueObject

This commit is contained in:
John Estropia
2016-03-25 19:59:31 +09:00
parent a168ca577a
commit 789028bc58
9 changed files with 28 additions and 18 deletions

View File

@@ -19,7 +19,7 @@ private struct Static {
SQLiteStore(
fileName: "TimeZoneDemo.sqlite",
configuration: "FetchingAndQueryingDemo",
resetStoreOnModelMismatch: true
localStorageOptions: .RecreateStoreOnModelMismatch
)
)

View File

@@ -53,7 +53,7 @@ private struct Static {
SQLiteStore(
fileName: "ColorsDemo.sqlite",
configuration: "ObservingDemo",
resetStoreOnModelMismatch: true
localStorageOptions: .RecreateStoreOnModelMismatch
)
)

View File

@@ -66,7 +66,7 @@ class CustomLoggerViewController: UIViewController, CoreStoreLogger {
}
}
func handleError(error error: NSError, message: String, fileName: StaticString, lineNumber: Int, functionName: StaticString) {
func log(error error: CoreStoreError, message: String, fileName: StaticString, lineNumber: Int, functionName: StaticString) {
GCDQueue.Main.async { [weak self] in

View File

@@ -22,14 +22,14 @@ private struct Static {
SQLiteStore(
fileName: "AccountsDemo_FB_Male.sqlite",
configuration: maleConfiguration,
resetStoreOnModelMismatch: true
localStorageOptions: .RecreateStoreOnModelMismatch
)
)
try! dataStack.addStorageAndWait(
SQLiteStore(
fileName: "AccountsDemo_FB_Female.sqlite",
configuration: femaleConfiguration,
resetStoreOnModelMismatch: true
localStorageOptions: .RecreateStoreOnModelMismatch
)
)
@@ -60,14 +60,14 @@ private struct Static {
SQLiteStore(
fileName: "AccountsDemo_TW_Male.sqlite",
configuration: maleConfiguration,
resetStoreOnModelMismatch: true
localStorageOptions: .RecreateStoreOnModelMismatch
)
)
try! dataStack.addStorageAndWait(
SQLiteStore(
fileName: "AccountsDemo_TW_Female.sqlite",
configuration: femaleConfiguration,
resetStoreOnModelMismatch: true
localStorageOptions: .RecreateStoreOnModelMismatch
)
)

View File

@@ -22,7 +22,7 @@ private struct Static {
SQLiteStore(
fileName: "PlaceDemo.sqlite",
configuration: "TransactionsDemo",
resetStoreOnModelMismatch: true
localStorageOptions: .RecreateStoreOnModelMismatch
)
)