CoreStore
GRDB.swift
Our great sponsors
CoreStore | GRDB.swift | |
---|---|---|
11 | 37 | |
3,927 | 6,435 | |
- | - | |
5.3 | 9.3 | |
28 days ago | about 16 hours ago | |
Swift | Swift | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
CoreStore
-
Core data example
It’s not from Apple, but there’s a framework called CoreStore which you might find easier to pick up initially.
-
Finally acquainting myself with CoreData after 10 years of mostly avoiding it. Very heavy obj-c baggage. Anyone recommend a wrapper?
CoreStore (though iCloud support is still in the works)
-
Swift Playgrounds iPad - Core Data?
CoreStore works really well for pure Swift models: https://github.com/JohnEstropia/CoreStore/blob/develop/Playground_iOS.playground/Contents.swift
-
Realm vs CoreData in 2021. Which do you use and why?
CoreData through CoreStore. Full disclosure: I’m the author of the lib
GRDB.swift
-
How can I quickly parse a huge 45MB JSON file using JsonDecoder
Not quite exactly sure what you mean but if its a .sqlite3 file then you can use it with this easy to use library https://github.com/groue/GRDB.swift
-
Question about Apple's review
The 3rd party library I use GRDB SwiftyUserDefaults Kingfisher SwiftDate Popovers
-
The most amazing project documentation you saw
https://github.com/groue/GRDB.swift#readme https://github.com/groue/GRDB.swift/tree/master/Documentation https://swiftpackageindex.com/groue/grdb.swift/documentation/grdb/
- GRDB-ORM, an ORM for GRDB - Swift SQLite
-
How to decide between JSON and CoreData?
Check the performance comparison page. GRDB comes with a convenient and ready-made support for Swift Codable that performs quite well. When needed, it is possible to write less convenient but optimized record types that add very little overhead to SQLite, and perform really well.
Multi-threading is precisely described in the GRDB Concurrency Guide.
Real + coredata both uses classes (and Realm even with some weird dynamic annotation before each property afaik). This means allocations and slowiness. GRDB performs pretty well: https://github.com/groue/GRDB.swift/wiki/Performance.
-
SwiftUI friendly, low impact alternative to CoreData?
I really like GRDB: https://github.com/groue/GRDB.swift It's incredibly well built, uses all the new and shiny Swift features and has all the things you described.
- SQLite for swift?
-
Core Data vs Realm performance analysis
Instead of either of these options, I would highly recommend checking out GRDB instead. It's a very nice SQLite wrapper that helps you avoid many of the concurrency issues affecting both Core Data and Realm: https://github.com/groue/GRDB.swift
What are some alternatives?
SQLite.swift - A type-safe, Swift-language layer over SQLite3.
Realm - Realm is a mobile database: a replacement for Core Data & SQLite
FMDB - A Cocoa / Objective-C wrapper around SQLite
SwiftData
encrypted-core-data - v2.0 - iOS Core Data encrypted SQLite store using SQLCipher
swift-composable-architecture - A library for building applications in a consistent and understandable way, with composition, testing, and ergonomics in mind.
IceCream - Sync Realm Database with CloudKit
QueryKit - A simple CoreData query language for Swift and Objective-C.
WCDB - WCDB is a cross-platform database framework developed by WeChat.
MagicalRecord - Super Awesome Easy Fetching for Core Data!
SQLite - A stand-alone Swift wrapper around the SQLite 3 client library.