In-memory database implemented in Python
Start the program:
python database.py
You will be prompted for input:
>>
Enter commands (supported commands):
set foo a
To stop the program, enter the following command:
end
set [name] [value]get [name]delete [name]count [value]endbeginrollbackcommit
Transactions and nested transactions are supported, however commit will commit all current transactions, regardless of which transaction it is called from.