avz / node-jl-sql-api Goto Github PK
View Code? Open in Web Editor NEWSQL for JS objects streams
License: MIT License
SQL for JS objects streams
License: MIT License
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?
Работает:
SELECT 1 + 2
Не работает:
SELECT 1+2
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)
For single-level names:
SELECT * WHERE [:field] = 'value'
For multi-level names (paths):
SELECT * WHERE [::path] = 'value'
Combination
SELECT * WHERE field.[:subkey].[::subpath] = 'value'
How to insert? An example?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.