AlexDenisov / iActiveRecord

ActiveRecord for iOS without CoreData, only SQLite
http://alexdenisov.github.com/iActiveRecord/
MIT License
354 stars 50 forks source link

Reload the databse file #45

Closed ferranabello closed 7 years ago

ferranabello commented 11 years ago

Hello, I am programming an app that downloads a new version of a database SQLite file anytime it needs to update. The problem is that ActiveRecord seems not to respond until I quit and close the applicacion and get back in again.

It could be possible to reinitialize the ActiveRecord database with the updated database SQlite file?

I've tried calling the +[ActiveRecord registerDatabaseName....] after the databse file is updated in the NSDocumentsDirectory but it's not working for me.

Am I missing something? (probably I am). Any help would be great! Thank you so much!