Fetching Data, Migrating, and Maintaining Persistent Stores
Buch, Englisch, 329 Seiten, Format (B × H): 155 mm x 235 mm, Gewicht: 528 g
ISBN: 978-1-4842-8210-6
Verlag: Apress
With many frameworks, there’s a point in the learning curve where you stop fearing the mountain of knowledge to learn and just enjoy the power to play and develop. For some reason many developers feel that point seems harder to reach with Core Data. And that’s unjustified—Core Data is a great framework that with powerful, optimized tools right out of the box. So it's time you stopped fearing the journey and took your steps further out into the world of enjoying the power of Core Data.
With what you learn, you can build apps to deal with a large amount of data and complex relationships in intelligent and efficient ways. Core Data has many secrets underneath the hood that can power up your persistent store like never before. Tools such as Undo, objects deletion, migration, and more. Set up your store and your data model, handle objects with a multi-threading environment, write integration tests, and share your data with an Apple Watch app and iCloud.
What You'll Learn
- Work with Core Data objects across apps and platforms
- Write integration tests with your persistent store
- Fetch, organize, write, and process data efficiently and intelligently
Who This Book Is For
Experienced iOS developers with Swift knowledge creating iOS apps that require saving complex data on the device other than a few numbers or text.
Zielgruppe
Professional/practitioner
Autoren/Hrsg.
Fachgebiete
Weitere Infos & Material
Chapter 1: Introduction
• Importance of Core Data as a persistent store
• How to read this book
Chapter 2: Core Data Stack and Setup
• The Core Data Framework
• Data Model
• Persistent Store
• Container
• Holding the stackChapter 3: Data Model
• The different types
• Relationships
• Fetched Properties• Parent Entities
• Deletion
• Code Generation
Chapter 4: Working with Contexts
• Contexts
• Create Objects
• Delete, Update, and Fetching
• Sorting
Chapter 5: Advanced Predicates
• Compound
• INCLUDE
• String Queries
• Sorting
• Relationships Queries
• Subquery
• Regular Expressions
Chapter 6: Implemention
• Converting to structs
• UIFetchController
• Undo
• Generics and Wrappers
• Combine and SwiftUI• Saving files
Chapter 7: Performance
• Multi Threading
• Debugging• Faulting
• Fetching Optimisation
o Limits
Chapter 8: Core Data Underneath
• Faulting
• Snapshotting
• Sqlite File Scheme
Chapter 9: Maintenance
• Migrations and Versioning
o Light migration
o Heavyweight migration
• Unit Testing
Chapter 10: Sharing
• iCloud Sync
• Extensions
• Swift Package
Audience: Advanced




