mlaanderson / database-js-ini Goto Github PK
View Code? Open in Web Editor NEWDatabase-js Wrapper for INI files
License: MIT License
Database-js Wrapper for INI files
License: MIT License
Publish a release in order to have a stable version to install (e.g. 1.0.0
).
AFAIK, database-js-ini does not support UPDATE commands yet. One problem is probably the syntax.
Thus, I would like to suggest a syntax for that:
UPDATE ROOT SET foo = "bar"
UPDATE ROOT SET max = 1
would produce
foo=bar
max=1
only if the corresponding keys ("foo" and "max") exist.
UPDATE `my section` SET foo = "bar"
UPDATE `my section` SET max = 1
would produce
[my section]
foo=bar
max=1
only if the section ("my section") and its corresponding keys ("foo" and "max") exist.
UPDATE `my section` SET foo = "bar" WHERE foo = "zoo"
UPDATE `my section` SET max = 100, `new key` = "new value" WHERE max < 100
Note: Keys can be produced during UPDATE, like the "new key" above.
A key should be removed by setting its value to NULL.
UPDATE ROOT SET foo = null WHERE foo = "zoo"
UPDATE `my section` SET max = null WHERE max < 100
UPDATE `my section` SET foo = null, `other key` = null WHERE max < 100
AFAIK, database-js-ini does not support INSERT commands yet. One problem is probably the syntax.
Thus, I would like to suggest a syntax for that:
INSERT INTO ROOT VALUES ( "foo", "bar" )
INSERT INTO ROOT VALUES ( "max", 1 )
would produce
foo=bar
max=1
INSERT INTO `my section` VALUES ( "foo", "bar" )
INSERT INTO `my section` VALUES ( "max", 1 )
would produce
[my section]
foo=bar
max=1
Notes:
AFAIK, database-js-ini does not support DELETE commands yet. One problem is probably the syntax.
Thus, I would like to suggest a syntax for that:
DELETE FROM ROOT
would remove all the sections and keys from the file.
DELETE FROM `my section`
would remove the section "my section".
DELETE FROM `my section` WHERE max < 100
would only remove the section "my section" if "max" is less than 100.
Notes
UPDATE `my section` SET max = null WHERE max < 100
This needs a readme
Section "About" is referring to MySQL
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.