leveldb

(★ 39,347)

LevelDB is a fast key-value storage library written at Google that provides an ordered mapping from string keys to string values.

File Explorer

  • .clang-format
  • .gitignore
  • .gitmodules
  • AUTHORS
  • CMakeLists.txt
  • CONTRIBUTING.md
  • LICENSE
  • NEWS
  • README.md
  • TODO

# Installation Guide

cmake
Prerequisites

Setup Steps

git clone --recurse-submodules https://github.com/google/leveldb.git

Clone the repository with submodules.

mkdir -p build && cd build

Create and navigate to the build directory.

cmake -DCMAKE_BUILD_TYPE=Release ..

Configure the CMake project in Release mode.

cmake --build .

Build the project.

Key Commands

cmake -DCMAKE_BUILD_TYPE=Release ..

Configure CMake configuration for a release build.

cmake --build .

Compile binaries based on the configured build files.

On Windows, you can use Visual Studio 2017 or later to generate and build the CMake solution.

# Use via CDN

jsDelivr

jsDelivr serves any public GitHub repository as a CDN with zero setup. Pick a version and a file to get a ready-to-paste link and snippet.

Command Glossary

Commands referenced in this DOCs, explained below.

🔍

clang-format

View Details ▼

Auto-format C/C++/Java/JavaScript/Objective-C/Protobuf/C# code.

clang-format {{path/to/file}}

Format a file and print the result to `stdout`:

clang-format -i {{path/to/file}}

Format a file in-place:

clang-format --style {{LLVM|GNU|Google|Chromium|Microsoft|Mozilla|WebKit}} {{path/to/file}}

Format a file using a predefined coding style:

🔍

cmake

View Details ▼

Cross-platform build automation system, that generates recipes for native build systems.

cmake {{path/to/project_directory}}

Generate a build recipe in the current directory with `CMakeLists.txt` from a project directory:

cmake --build {{path/to/build_directory}}

Use a generated recipe in a given directory to build artifacts:

cmake --install {{path/to/build_directory}} --strip

Install the build artifacts into `/usr/local/` and strip debugging symbols:

🔍

devenv

View Details ▼

Fast, declarative, reproducible, and composable developer environments using Nix.

devenv init

Initialize the environment:

devenv shell --impure

Enter the Development Environment with relaxed hermeticity (state of being airtight):

devenv info --verbose

Get detailed information about the current environment:

🔍

git clone

View Details ▼

Clone an existing repository.

git clone {{remote_repository_location}} {{path/to/directory}}

Clone an existing repository into a new directory (the default directory is the repository name):

git clone --recursive {{remote_repository_location}}

Clone an existing repository and its submodules:

git clone {{[-n|--no-checkout]}} {{remote_repository_location}}

Clone only the `.git` directory of an existing repository:

// repository documentation