Skip to content

gusandrioli/gkvDB

Repository files navigation

gkvDB

Transactional key-value store DB in Go that sits on top of LevelDB.

Installation

1 - Download package

go install github.com/gusandrioli/gkvDB

2 - Executable

Go to Releases and download the latest binary. Then run it locally:

./gkvDB

3 - Run it locally

[email protected]:gusandrioli/gkvDB.git
go mod tidy
go install
gkvDB

Quick Start

  1. Open the gkvDB console:
gkvDB
  1. Set a value:
gkvDB >>> SET Name Joe
  1. List all records
gkvDB >>> LIST RECORDS
Name: Joe

Usage/Commands

Command Description Args
BEGIN Begins a transaction -
COMMIT Commits a transaction -
COUNT Retrieves the number of records/databases stored DATABASES/RECORDS
DELETE Deletes a record based on a key DATABASE/RECORD + KEY
END Ends a transaction -
EXIT Exits the console -
GET Gets a record based on a key KEY
LIST Lists all databases/records/transactions stored DATABASES/RECORDS/TRANSACTIONS
NEW Creates new database DATABASE + DB_NAME
ROLLBACK Rolls back a transaction
SET Sets a key to a certain value KEY + VALUE
USE Uses a specific database DB_NAME

Bugs

Bugs or suggestions? Open an issue here.