AlaSQL / alasql

AlaSQL.js - JavaScript SQL database for browser and Node.js. Handles both traditional relational tables and nested JSON data (NoSQL). Export, store, and import data from localStorage, IndexedDB, or Excel.
http://alasql.org
MIT License
7.01k stars 653 forks source link

Implement version of the library without parser #219

Open agershun opened 9 years ago

agershun commented 9 years ago

Instead SQL text code, this function will accept AST as an input, like:

    var res = alasql.run({statement:'=', expression;{value:10}});

This can save about 100 kb and allow to implement other interfaces for other JS languages, e.g. Clojure

mathiasrw commented 9 years ago

Is the idea to change the AST with this syntax internally? Otherwise it could be another "flavour" for querying

agershun commented 9 years ago

Yes. The idea to create something like LINQ and ORM and MongoDB plus external JSON interface