This is a simple database implementation.
$ git clone https://github.com/davidianstyle/david-chang-db.git
$ cd david-chang-db
# npm install
$ npm start
SET [name] [value]
Sets the name in the database to the given value
GET [name]
Prints the value for the given name. If the value is not in the database, prints NULL
DELETE [name]
Deletes the value from the database
COUNT [value]
Returns the number of names that have the given value assigned to them. If that value is not
assigned anywhere, prints 0
END
Exits the database
BEGIN
Begins a new transaction
ROLLBACK
Rolls back the most recent transaction. If there is no transaction to rollback, prints TRANSACTION NOT FOUND
COMMIT
Commits all of the open transactions
$ git clone https://github.com/davidianstyle/david-chang-db.git
$ cd david-chang-db
$ npm run tests
lodash.js
Lodash.js simple Javascript utilities
underscore.js
Underscore.js simple Javascript utilities
inquirer.js
Inquirer.js User prompts
inquirer-recursive.js
inquirer-recursive Recursive user prompts (forked version)
chalk
chalk Colorful GUI
figlet
figlet ASCII art from text