View on GitHub

Alasql

Alasql.js - pure JavaScript fast client-side SQL database

Download this project as a .zip file Download this project as a tar.gz file

Try Alasql in console!

Alasql - 'à la SQL' - is a lightweight client-side in-memory SQL database designed to work in browser and Node.js.

It is easy to use

  <script src="alasql.js"></script>  
  <script>
    alasql("CREATE TABLE test (language INT, hello STRING)");
    alasql("INSERT INTO test VALUES (1,'Hello!')");
    alasql("INSERT INTO test VALUES (2,'Aloha!')");
    alasql("INSERT INTO test VALUES (3,'Bonjour!')");
    console.log( alasql("SELECT * FROM test WHERE language > 1") );
  </script>

Check Alasql vs other JavaScript databases:

View Alasql documentation on GitHub!