LevelDB is a fast key-value storage library written at Google that provides an ordered mapping from string keys to string values.
To install levelDB 1.23 version from GitHub repository
cd
git clone https://github.com/google/leveldb.git -b 1.23 leveldb
cd leveldb
git submodule update --init
mkdir install; mkdir build; cd build
cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=~/leveldb/install
make; make install
cd ..; rm -rf build
To generate code with levelDB support, add this block in nablagen (after VtkOutput block)
LevelDB
{
leveldb_ROOT = "$ENV{HOME}/leveldb/install";
}
Then the json datafile waits for nonRegression field that could be CreateReference or CompareToReference.
To run NabLabExamplesTest, you have to set leveldb_ROOT
export leveldb_ROOT=$HOME/leveldb/install