As we have already discussed, iPhone and Android use SQLite. And for Blackberry it uses SQLite on a device it supports, otherwise it will use HSQL database. But the question is how does Rhom store data and how can we handle migration?
Rhodes provides two ways to store data in a phone:
Property Bag
Fixed Schema
Property Bag is the default option available for our models. In Property Bag, the entire data is stored in a single table with a fixed number of columns.
The table contains the following columns:
Source_id
attribute
object
value
update_type
When you use the Property Bag model, you don't have to track schema changes (adding or removing attributes). However, Rhodes uses the Property Bag schema to store app data in a SQL database. If the internal Property Bag schema changes after an application is updated or reloaded, the database will be (re)created and all existing data would be erased. See rhodes\lib\rhodes.rb
and rhodes\lib\framework\rhodes.rb
for the internal...