Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cordova/Phonegap ORM?

Tags:

sqlite

cordova

Are there any ORM javascript projects compatible with Cordova, like ORMLite? I did a google search, github search, searched here, and couldn't find any.

If not, maybe it's time to start one.

like image 370
TomJ Avatar asked Aug 11 '12 00:08

TomJ


2 Answers

This old but I stumbled upon it so others might too... what ended up working for me was using the Cordova SQLite plugin for a db with no size limit and the Persistence.js ORM to work with it.

like image 155
Alex Weber Avatar answered Oct 22 '22 08:10

Alex Weber


This question is old, but there is also Persistence.js which I actually ended up using. It has it's own drawbacks, but every ORM does.

It would actually use the HTML5 storage on the phone. This is limited to 5mb per the specification, but obviously individual vendors may not enforce or follow this limit.

like image 39
TomJ Avatar answered Oct 22 '22 09:10

TomJ