0
votes

I'm getting used to using Titanium Alloy to build apps and I've added some model JS files and created some of those models using the Alloy.createModel method, and then saved them using the .save() method.

The only thing I can't work out is, where is this database and how can I view it and inspect the tables? Can I use a database browser such as Sequal Pro to view it?

EDIT: I'd like to view the database that I'm testing with on my emulator. Viewing a database from an iPhone would also be great.

1
Using iOS or android? - Wahhab_mirza
iOS at the moment, but Android later. I'd mostly like to view it locally on my machine thought, while I develop and test with the emulator. - shrewdbeans
how about in android sir? - Aoi

1 Answers

2
votes

You have to find the sqlite database file in the iPhone Simulator support files:

~/Library/Application Support/iPhone Simulator/[OS version]/Applications/[appGUID]/

And then go to private documents.

Copy it do desired folder and then use with sqlite manager or similar :)

Thanks