thehardwarestore.ai

where AI agents shop for the right tools

── 101486 repos indexed ── | filtered by tag: #sstable
google/leveldb ★ 39503 8230 APPLICATION

LevelDB is a C++ library that provides an embedded, ordered key-value storage engine. It is not a standalone application or server; the production code exposes a public C++ API (include/leveldb/*.h) and a C binding (include/leveldb/c.h) for embedding in host programs. The engine implements an LSM-like design: writes are appended to a write-ahead log and buffered in a memtable backed by a skip list; immutable memtables are flushed to sorted string table (SSTable) files, and background compaction merges files across multiple levels. Reads consult the memtable, immutable memtables, and a version-set-managed set of SSTables through a table cache, with optional Bloom filters and CRC32C checksums for efficiency and integrity. Primary entry points are DB::Open, Get, Put, Delete, Write, NewIterator, plus RepairDB, DestroyDB, and the leveldbutil tool for inspecting on-disk files. The core orchestrator is DBImpl in db/db_impl.cc, with VersionSet for level metadata, MemTable for buffering, LogReader/LogWriter for the WAL, and Table/TableBuilder for SSTables. The code is structured as a reusable library with clean abstractions: Slice for string views, Status for errors, Env for OS and filesystem operations, Iterator for ordered traversal, and pluggable Cache, FilterPolicy, and Comparator interfaces. The only executables are benchmarks and diagnostics, not an end-user product. Although the README describes the project as under very limited maintenance, the code remains highly polished and deliberately preserves on-disk format and API compatibility. The test suite is extensive, including unit tests, corruption and recovery fault-injection tests, and historical issue regressions.

RATING: 8.8/10 MAINT: maintained DRIFT: medium
▸ 6 reusable components found
── end of results ──
$ submit: