Titanium Developer is a cross platform development toolkit for developing iPhone and Android application is JavaScript.
Both platforms contain a SQLite database, and Titanium exposes a simple Database Adapter that allows you to talk SQL to the database. As someone who has been spoiled by Ruby on Rails and it’s ActiveRecord ORM library, this is a serious step back in time.
I have been working on a simple JavaScript library that mimics the most important parts of ActiveRecord and makes it simpler to work with persisted objects.
TiStore is the result of this work. It allows you to define Object classes and do the standard CRUD operations on it: