Transactional key-value store DB in Go that sits on top of LevelDB.
go install github.com/gusandrioli/gkvDB
Go to Releases and download the latest binary. Then run it locally:
./gkvDB
[email protected]:gusandrioli/gkvDB.git
go mod tidy
go install
gkvDB
- Open the gkvDB console:
gkvDB
- Set a value:
gkvDB >>> SET Name Joe
- List all records
gkvDB >>> LIST RECORDS
Name: Joe
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 or suggestions? Open an issue here.