One of the things I miss from moving from SQLite to Core Data is the ability to query directly against my database to analyze data. Is anyone out there aware of a tool that allows for the browsing of a Core Data store in a similar fashion?
相关问题
- Core Data lightweight migration crashes after App
- Can two managed object context share one single pe
- Multiple instances of _CDSnapshot_[entityName]_
- Why are Core Data NSManagedObject faults fired upo
- iOS: Swift: Core Data: Error: +entityForName: nil
相关文章
- Generate code for core data attributes in xcode 4
- Core Data sort descriptor with NSDate, iOS with Sw
- NSFetchedResultsChangeUpdate fired instead of NSFe
- Case Insensitive Compare with Core Data and Swift
- Renaming coredata .xcdatamodeld file and migration
- Subclass.fetchRequest() Swift 3.0, extension not r
- Core Data NSManagedObject doesn't have a valid
- swift sync data of core data an mysql database [cl
MesaSQLLite - all i wanted was to view some data. This did it, nice and easy.
CoreDataEditor is $20 and doesn't make it quick and easy to browse the relationships of the managed object context. There was also some insanity about having to have the MOM use exactly the same name as your application (??!), or somesuch. I'm not about to go in and start renaming stuff just to browse my object store. Admittedly, it does have a pretty cool application icon, and I assume from the name that you can edit stuff. But, like the original poster, I just need something that will let me crack open a Core Data persistent store and quickly grok my managed objects.
I've found that a much better solution, one which offers intuitive and easy browsing of the relationships of managed objects, and which is free, is detailed here:
Browsing Core Data databases using F-Script
You basically install F-Script, and then run Mr. Tyson's Applescript, which asks you to locate your MOM (e.g., YourApp.app) and then the SQLite database that is being used as the persistent store (i.e., YourAppPersistentStore.sqlite). If you are using the iPhone Simulator, these are both in your Simulator directory -- for example:
Then select an Entity and hit 'fetch'. You can run a NSPredicates to filter its items, or click on an item and click 'Browse'. It opens "F-Script Object Browser" and from this window, you can follow relationships and basically tour all the items in your entire managed object context, inspecting all the attributes for each item. It's super awesome.
There is a similar topic here How view data stored in Core Data?
I have already added a comment where I say I created a macOS app to browse your Core Data content. It hides Core Data implementation as you see when you use a SQLite browser. Also you can list all your latest run apps and simulators, with this you can easily find the app you are looking for. More info here:
http://www.microedition.biz/simMagnifier
It has other features like access Simulator's folders such as Documents, Application Support, etc. You can check the content of NSUserDefaults too.
The app is not free sorry! but at least you have a 7 days trial.
I ended up using SQLPro for SQLite (https://www.sqlitepro.com/) Even free version is enough for development (in full version you get inline editing etc.)
Also recommend Simpholders app (http://simpholders.com/) it opens finder with db.sql file containing folder
CoreDataPro lets you explore your data model and view data that your application has stored. You can download it from the project page on github:
https://github.com/yepher/CoreDataUtility
If your using SQLite as a backend, you can try my app SQLite Professional (App Store).
The app has a few neat features such as:
There is a seven day trial available via the website and a free readonly version available on the mac app store.