Take the 2-minute tour ×

I am trying to use the https://github.com/xavierlacot/joli.js Active Record style model for Titanium but a falling at the first hurdle...

My app.js file contains the init code suggested in the read me.

 var db = require('joli').connect('myDb');

I have had a look around and cannot find any examples that explain how to setup the database when using Joli. Does the db.model.initialize(); method setup a new database if one does not exist and migrate tables for each model defined?

share|improve this question

1 Answer 1



This has the examples that you required.

Abishek R Srikaanth

share|improve this answer

Your Answer


