Skip to content

Latest commit

 

History

History
49 lines (32 loc) · 1014 Bytes

File metadata and controls

49 lines (32 loc) · 1014 Bytes

leveldb-repl

LevelDB REPL (Read-Eval-Print Loop) is a command-line interface that allows you to interactively open, query, and manipulate a LevelDB database.

This project is built in C++23 and serves as an interactive shell to experiment with or debug LevelDB databases easily.


Features

  • Open (Automatically tries to create if not present)
  • Reading from database
  • Writing values to database
  • Delete values from database
  • Printing whole database
  • Double or single quote keys or values for json and other stuff

Example:

write hello_world "This will 'be written'"
write "hello world" 'This will "also be written"'

Requirements

  • C++23 compatible compiler (e.g., g++-13, clang++-17)

Building

cmake -Bbuild -DCMAKE_BUILD_TYPE=Release -H.
cmake --build build -j$(nproc)

Running

./build/leveldb-repl

TODO

  • Tests
  • Precompiled binaries with each release aarch64, x86_64 with musl