[PR #308] Improve custom schema mapping provider #490

Open
opened 2025-12-29 18:27:16 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/JohnEstropia/CoreStore/pull/308
Author: @iby
Created: 3/16/2019
Status: 🔄 Open

Base: developHead: develop


📝 Commits (6)

  • caa26bc Fix source model typos
  • b609cdd Add migration unit test for CustomSchemaMappingProvider
  • 242a1fa Simplify migration mapping model creation
  • 790378f Remove try from asynchronous add storage example
  • 4790053 Remove source expression for deleted entities
  • 6c7778f Improve custom schema mapping provider

📊 Changes

12 files changed (+376 additions, -179 deletions)

View changed files

📝 CoreStore.xcodeproj/project.pbxproj (+8 -0)
CoreStoreTests/MigrationTests.swift (+235 -0)
📝 CoreStoreTests/SetupTests.swift (+4 -4)
📝 README.md (+2 -2)
📝 Sources/CSSQliteStore.swift (+2 -2)
📝 Sources/CSStorageInterface.swift (+1 -1)
📝 Sources/CustomSchemaMappingProvider.swift (+80 -133)
📝 Sources/DataStack+Migration.swift (+5 -5)
📝 Sources/DataStack.swift (+2 -2)
📝 Sources/NSEntityDescription+Migration.swift (+29 -22)
📝 Sources/SQLiteStore.swift (+5 -5)
📝 Sources/StorageInterface.swift (+3 -3)

📄 Description

  1. Improve property and relationship mapping.
  2. Throw errors when property or relationship cannot be mapped, don't explicitly unwrap.
  3. Add extensive schema mapping and migration tests.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/JohnEstropia/CoreStore/pull/308 **Author:** [@iby](https://github.com/iby) **Created:** 3/16/2019 **Status:** 🔄 Open **Base:** `develop` ← **Head:** `develop` --- ### 📝 Commits (6) - [`caa26bc`](https://github.com/JohnEstropia/CoreStore/commit/caa26bca702f18d60afc58ccba129b8422035579) Fix source model typos - [`b609cdd`](https://github.com/JohnEstropia/CoreStore/commit/b609cdd47dd197ec9f1c31d119f93bfc72d8b832) Add migration unit test for CustomSchemaMappingProvider - [`242a1fa`](https://github.com/JohnEstropia/CoreStore/commit/242a1fa0440297c49b95e1f5765b4b55b4d2648e) Simplify migration mapping model creation - [`790378f`](https://github.com/JohnEstropia/CoreStore/commit/790378f7dc63e30da30f801dfd35ee02020a5129) Remove try from asynchronous add storage example - [`4790053`](https://github.com/JohnEstropia/CoreStore/commit/4790053475cbdd26c9c52609ea84b9c8259e82ef) Remove source expression for deleted entities - [`6c7778f`](https://github.com/JohnEstropia/CoreStore/commit/6c7778f32e02182e46debb7ef79d7b167fb0c84d) Improve custom schema mapping provider ### 📊 Changes **12 files changed** (+376 additions, -179 deletions) <details> <summary>View changed files</summary> 📝 `CoreStore.xcodeproj/project.pbxproj` (+8 -0) ➕ `CoreStoreTests/MigrationTests.swift` (+235 -0) 📝 `CoreStoreTests/SetupTests.swift` (+4 -4) 📝 `README.md` (+2 -2) 📝 `Sources/CSSQliteStore.swift` (+2 -2) 📝 `Sources/CSStorageInterface.swift` (+1 -1) 📝 `Sources/CustomSchemaMappingProvider.swift` (+80 -133) 📝 `Sources/DataStack+Migration.swift` (+5 -5) 📝 `Sources/DataStack.swift` (+2 -2) 📝 `Sources/NSEntityDescription+Migration.swift` (+29 -22) 📝 `Sources/SQLiteStore.swift` (+5 -5) 📝 `Sources/StorageInterface.swift` (+3 -3) </details> ### 📄 Description 1. Improve property and relationship mapping. 2. Throw errors when property or relationship cannot be mapped, don't explicitly unwrap. 3. Add extensive schema mapping and migration tests. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
adam added the pull-request label 2025-12-29 18:27:16 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/CoreStore-JohnEstropia#490