I'm trying out JazzRecord with a Titanium Desktop app. I really like
it so far - with one exception:
It appears that the database name is hardcoded to "jazz_record". I
need to be able to choose the database name, since users of my
application will be able to specify their database name so they can
back up their application data or move it to a different machine.
Does anyone know of a way to specify the database name?
Thanks,
Phil
When initializing the project, you must initialize an adapter via it's constructor. Pass into this an object with a property dbFile and your db will be of whatever name you like. Example follows. Sorry for the delayed response!
JazzRecord.adapter = new JazzRecord.GearsAdapter({dbFile: "test.db"});
This sets you up for Gears with a test.db file, (most sqlite db systems use separate files for each db) so there will be no overlap if you used another one before.