Skip to content

Latest commit

 

History

History
33 lines (29 loc) · 627 Bytes

README.md

File metadata and controls

33 lines (29 loc) · 627 Bytes

key-value-REPL

key-value-REPL is a Go implementation of a key-value store with transactions using a REPL (read-eval-print loop).

How to run

go run main.go

You're able to provide an optional flag name to name the app; otherwise it defaults to the name web-app, e.g.

go run main.go --name="web-app"

Example flow

web-app> Welcome to web-app!
web-app> Type HELP for a list of commands.
web-app> START   
web-app> WRITE 3 3
web-app> WRITE 4 4
web-app> READALL    
Key: 3 Value: 3
Key: 4 Value: 4
web-app> COMMIT
web-app> READALL
web-app> ABORT
web-app> READALL
Key: 3 Value: 3
Key: 4 Value: 4