fork me on github

Simple Database

Instructions:

Insert the desired commands and click on run for the commands to be executed. Every run is independent of the previous one so variables will not be stored across different runs.

Allowed commands are:

  • GET [variable_name] : returns value associated with [variable_name]
  • SET [variable_name] [value] : stores [variable_name] with [value]
  • NUMEQUALTO [value] : returns number of variables with same [value]
  • UNSET [variable_name] : deletes [variable_name]
  • BEGIN : creates a new transactional block which can be rolledback
  • COMMIT : makes current transactional block permanent
  • ROLLBACK : returns database to to previous transactional block
  • END : terminates database (eliminates all variables stored)