persistence.js
is a asynchronous Javascript object-relational
mapper library. It can be used both in the web browser and on
the server using node.js. It currently
supports 4 types of data stores:
- HTML5 WebSQL database, a somewhat controversial part of HTML5 that is supported in Webkit browsers, specifically on mobile devices, including iPhone, Android and Palm's WebOS.
- Google Gears, a browser plug-in that adds a number of feature to the browser, including a in-browser database.
- MySQL, using the node-mysql, node.js module on the server.
- In-memory, as a fallback. Keeps the database in memory and is cleaned upon a page refresh (or server restart).
There is also an experimental support for Qt 4.7 Declarative UI framework (QML) which is an extension to JavaScript.
For browser use, persistence.js
has no dependencies on any other
frameworks, other than the Google Gears initialization
script, in case you
want to enable Gears support.