SQL.js: SQLite engine is translated to JavaScript via Emscripten
Alon Zakai (creator of Emscripten ) continues to act: this time he released theSQL.jsscript - the result of translating the SQLite library to JavaScript using his own tool Emscripten. The demo page shows the script in action, and if you look at the source code, you will see how simple Zakay arranged for using this tool compiled by him:
var db = SQL.open(); var data = db.exec(command);
You can run as many SQL queries as you like , and they all work exactly the same as in the original SQLite. Very cool! Maybe Zakai will be able to arrange data storage in IndexedDB, and then over time we will have a polyfill for WebSQL? In any case, I think this news deserves a mention! Well done.