mirror of
https://github.com/JohnEstropia/CoreStore.git
synced 2026-01-14 07:33:28 +01:00
Importing data #127
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ro22e0 on GitHub (Feb 19, 2017).
Does CoreStore support UserInfo Keys like MagicalRecord ?
@JohnEstropia commented on GitHub (Feb 20, 2017):
Sorry, not yet. This is actually currently being prototyped but there is no release schedule yet.
@DimaAvvakumov commented on GitHub (Mar 28, 2018):
Hi! Thanks for awesome library.
One question - this feature still in prototype state?
@JohnEstropia commented on GitHub (Mar 28, 2018):
@DimaAvvakumov Ah, I sort of abandoned this as I didn't like the complete magic string-dependency. Even released an architecture to get rid of
xcdatamodels completely (CoreStoreObject.Let me know if there is a significant benefit for your use-case with userInfo keys instead of the current
ImportableObjectmethod.@DimaAvvakumov commented on GitHub (Mar 29, 2018):
Thank you for answer. UserInfo keys is not my primary goal. I want to custom mapping keys while importing object from json.
For example:
json
entity
How can i import this?
@JohnEstropia commented on GitHub (Mar 29, 2018):
@DimaAvvakumov Check out the
ImportableUniqueObjectprotocol:https://github.com/JohnEstropia/CoreStore#importing-data
Simple example:
You can then import your object via transactions:
@DimaAvvakumov commented on GitHub (Mar 29, 2018):
Thank you, I'll deal with this.
@JohnEstropia commented on GitHub (Mar 29, 2018):
Sounds tough! 😆
Feel free to ask anything!
@Pratik-Sodha commented on GitHub (May 13, 2019):
Thank you for awesome CoreData Wrapper.
I have situation in which i have to store pre-fill master data. Sync at app launch event. I have array of Model.
**For example : **
Thank you in advance :)