AmnesiaDB is a simple key/value storage engine developed with a single purpose: studying internal aspects of a database. It's supposed to be an LSM-Tree with some specific types being implemented using B+-Trees.
- SET: Implemented using B+-Trees
- STRING: Plain values stored by commands like
set somekey somevalue
bundle install
bundle exec rspec
./amnesia-cli dbname.db
Once you are in the prompt you can execute the following commands: get
, set
, and delete
.
> set firstName Mabel
> set lastName Pines
for deleting:
> delete firstName
for retrieving:
> get lastName
Pines