-
-
Notifications
You must be signed in to change notification settings - Fork 255
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fetchAll returning empty array #449
Comments
@darrenasaro Since you're not getting an error at |
It does as evidenced by the CoreData implementation returning a populated array. I've swapped these implementations verbatim with all else equal and the CoreData one always returns a populated array while the CoreStore implementation always returns empty. |
@darrenasaro Can you print the original file URL from here
and check if it's still the same URL passed to
|
@JohnEstropia They are the same. I've recreated the issue in it's simplest form here |
Thanks for isolating the issue! I'll investigate |
@darrenasaro Oh boy... It looks like
Look at the output:
Note that |
Since it looks like CoreStore is behaving correctly here, I'm marking this issue as a |
@JohnEstropia Thank you for investigating this! Excited I can use this library now. This CoreData behavior definitely seems to be problematic. I actually downloaded the container to investigate and it looks like CoreData puts an sqlite file in |
Oh my, that's even worse. I'll try to explain that situation in the CoreStore README for future migrators. Thanks for investigating the behavior further |
I have an app which stores an entity
class EntityA: NSManagedObject {...}
I have the following simplified CoreData code to fetch this entity
I created the equivalent CoreStore code
The CoreData code returns the properly populated array while CoreStore returns an empty array. I tried initializing
SQLiteStore
with a number of different options, and tried the async versions ofaddStorage
all to no avail. I set breakpoints in the relevant CoreStore functions, but could not find anything glaring that would indicate the issue. Not sure if this is a bug or if I am misusing CoreStore but any help here would be much appreciated.The text was updated successfully, but these errors were encountered: