2 ms·
The other common complaint is that using plain strings for data access is inelegant, and not very javascript-y. It will face the same problem as other platforms
by jomohke 16y ago
The other common complaint is that using plain strings for data access is inelegant, and not very javascript-y. It will face the same problem as other platforms, where developers end up writing ORM frameworks to map relational database tables (somewhat awkwardly) to objects.
IndexedDB feels closer to real javascript - it does all access through javascript methods. Writing storage wrapper libraries will be cleaner against this kind of API than concatenating strings of SQL.
And it does not preclude someone from writing an SQL implementation on top of it, if they desire. (Or something simpler. eg. http://thomasfrank.se/sqlike.html http://thomasfrank.se/sqlike.html)