GithubHelp home page GithubHelp logo

node-jl-sql-api's People

Contributors

avz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

thiagodp

node-jl-sql-api's Issues

Add `INSERT` and `UPDATE` keywords

Add INSERT and UPDATE keywords to allow to add and modify data on the json-lf datastore, just by adding new lines to the end of the file and in the case of the UPDATE keyword removing the old one first (so it would make sense to also implement a DELETE keyword and maybe some kind of transaction mechanism, so the UPDATE would be implemented as a DELETE + INSERT).

I would also add an option to set a limit in the file size, so if the about-to-write line makes the file to be bigger than this value (easy to implement by just having the current size of the file and the length of the line) just write it in a new file, maybe with an identifier at the end of its filename so later the two (or more) files could be loaded at the same time. The store of the register would check what file has enough space and select it, but maybe this would make it enough complex to make it its own module, isn't it?

Make aliases accesible in WHERE and GROUP BY

For now, aliases only accessible in HAVING:

SELECT a AS b HAVING b = 10

but not in WHERE or GROUP BY:

SELECT a AS b WHERE b = 10 # make empty result (undefined = 10)
SELECT a AS b GROUP BY b   # all rows groupping by same key value (undefined)

Identifiers bindings

For single-level names:

SELECT * WHERE [:field] = 'value'

For multi-level names (paths):

SELECT * WHERE [::path] = 'value'

Combination

SELECT * WHERE field.[:subkey].[::subpath] = 'value'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.