1.0.0 • Published 5 years ago
js-sql-eval v1.0.0
jsSQL
Purpose
This package evaluates basic operators from relational algebra and SQL. It serves as a backend for visualisations and other frontend tools. The generation of single tuples as well as of whole relations can be observed via the classic visitor pattern.
NPM
jsSQL is built in vanilla javascript on purpose, to have a small set of dependencies and high compatibility with many browsers and versions. But this repository features an NPM package that wraps around the vanilla functionality.
Known Issues
- The most basic form of logic is an instance of
Predicate
, which in turn holds a lambdaTuple -> bool
. While this makes sense functionally, it isn't very clean when it comes to parsing queries from an input string, as it would require the usage ofeval
sooner or later. Maybe expressions should be built dynamically as ASTs instead?
1.0.0
5 years ago