aboutsummaryrefslogtreecommitdiff

KomfyDB

Simple database C++ implemenatation based on MIT SimpleDB.

Cloning

Run:

git clone --recursive https://github.com/DorosMichal/KomfyDB

Requierments

  • clang-13
  • bazel
  • openjdk-11-jdk

On Debian Bullseye:

sudo apt update && sudo apt install clang-13 bazel openjdk-11-jdk

Using bazel

I highly encourage you to take a look on this tutorial as it's really short and shows almost everything we need here.

First run:

source ./env.sh

To see if bazel is working run (anywhere in the source tree!):

bazel run //komfydb:komfydb -- --logtostderr=1

To cleanup simply run

bazel clean --expunge

Set up pre-commit

Pre-commit needs to be installed manually:

pip3 install --upgrade pip
pip3 install pre-commit
pre-commit install