To run:
export CURRENT_WITH_LEVELDB=true
make
To run from scratch:
mkdir -p clean/with/subdirs
(cd clean/with/subdirs; git clone https://github.com/dkorolev/current_with_leveldb) &&
(cd clean/with/subdirs/current_with_leveldb; CURRENT_WITH_LEVELDB=true make) && (
cd clean/with/subdirs/current_with_leveldb &&
./.current/create_leveldb &&
./.current/scan_leveldb &&
./.current/populate_leveldb &&
./.current/scan_leveldb &&
./.current/populate_leveldb --key foo --value bar &&
./.current/scan_leveldb
)
rm -rf clean/with/subdirs/current_with_leveldb
rmdir clean/with/subdirs
rmdir clean/with
rmdir clean
The Makefile is originally grabbed from:
wget https://raw.githubusercontent.com/C5T/Current/stable/cmake/Makefile
For the time being, I've changed the repo & branch name for LevelDB support.
TODO(dkorolev): This will be unnecessary once the respective PR into C5T/Current is merged.