I started playing around with Sqlite. Very easy to use and quite powerful. Easy to create a DB, create tables, rows, and query. Lita is very nice, too.
How would you go about modifying a DB, though, on a subsequent release? This is tricky since most times you deal with a database, it’s centrally located and you have access to it with a DB admin tool (like Lita), but in this case, every customer that has your app has a copy of the database.
Let’s say you decide to add a column to a table. The DB already exists on the customer’s device, so you can’t simply create it again. Plus, you have the issue of existing data that you probably don’t want to blow away.
I suppose Sqlite supports ALTER TABLE, but you would only want to run that once, not every time the app fires up, since it would fail after the column is already there.
Maybe you just accept that failure and swallow the error. Anyone dealing with this? [import]uid: 58455 topic_id: 26109 reply_id: 326109[/import]
