Skip to content

Instantly share code, notes, and snippets.

View jeefy's full-sized avatar
😏
#honkernetes

Jeffrey Sica jeefy

😏
#honkernetes
View GitHub Profile
@jeefy
jeefy / phonegap_orm.js
Last active December 19, 2023 21:26
Rough ORM on top of PhoneGap's Storage API.
/*
I wasn't happy with PhoneGap's Storage API and made it cleaner (in my eyes anyway)
Example:
db.query("someTable", ['id', 'column1', 'column2'], false, function(tx, results){ .. });
db.query("someTable", ['*'], {'column1':'val', 'column2':'val'}, function(tx, results){ .. });
db.save("someTable", IterableObject, function(){ ... });
Doing more testing and validation later, but getting it out there now. :)
*/