/fakedb

A toy transactional db can store two key value pairs.

Primary LanguageGo

fakedb, a transactional database, based on aries and s2pl, can save two key-value pairs. Key, value size cannot be larger than 8K. Built for learning purpose.

Install:

go get github.com/xiaobogaga/fakedb
go install github.com/xiaobogaga/fakedb/fakedb

Usage

start server:

fakedb

start client cli

fakedb -client
hi :)
fakedb> help
* set key value
* get key
* del key
* begin
* commit
* rollback
* help
fakedb>

and then type help for more information. begin, commit, rollback to begin, commit or rollback a transaction.