C++ Database

Open-source C++ projects categorized as Database
SQL CPP Sqlite C++ NoSQL

Top 23 C++ Database Projects

  1. ClickHouse

    ClickHouse® is a real-time analytics database management system

    Project mention: Exposing concurrency bugs with a custom scheduler | news.ycombinator.com | 2025-02-14

    It is possible to do this entirely in userspace without a custom scheduler.

    See the implementation here: https://github.com/ClickHouse/ClickHouse/blob/master/src/Com...

    It works and makes significant improvements for the detection of concurrency bugs, including complex logical races in distributed scenarios.

  2. CodeRabbit

    CodeRabbit: AI Code Reviews for Developers. Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.

    CodeRabbit logo
  3. LevelDB

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

    Project mention: RocksDB: Your Key-Value Store Powerhouse (and Why You Should Care) | dev.to | 2025-02-16

    LevelDB: https://github.com/google/leveldb

  4. RocksDB

    A library that provides an embeddable, persistent key-value store for fast storage.

    Project mention: RocksDB: Your Key-Value Store Powerhouse (and Why You Should Care) | dev.to | 2025-02-16

    RocksDB Official Website: https://rocksdb.org/

  5. DuckDB

    DuckDB is an analytical in-process SQL database management system

    Project mention: The DuckDB Local UI | news.ycombinator.com | 2025-03-12

    I agree that the blog post seems to hint at the fact that this functionality is fully baked in in certain places - we've adjusted the blog post to be more explicit on the fact that this is an extension.

    We have collaborated with MotherDuck on streamlining the experience of launching the UI through auto-installation, but the DuckDB Foundation still remains in full control of DuckDB and the extension ecosystem. This has no impact on that.

    For further clarification:

    * The auto-installation mechanism is identical to that of other trusted extensions - the auto-installation is triggered when a specific function is called that does not exist in the catalog - in this case the `start_ui` function. See [1]. The query I mentioned just calls that function. The only special feature here is the addition of the CLI flag (and what that flag executes is user-configurable).

    * The HTTP server is necessary for the extension to function as the extension needs to communicate with the browser. The server is open-source as part of the extension code [2]. The server (1) fetches web resources (javascript/css) from ui.duckdb.org, and (2) communicates with localhost to co-ordinate the UI with DuckDB. Outside of these the server doesn't interface with other external web services.

    [1] https://github.com/duckdb/duckdb/blob/main/src/include/duckd...

  6. MongoDB

    The MongoDB Database

    Project mention: How To Connect React JS With Node JS and MongoDB | dev.to | 2025-03-19

    MongoDB is trusted by developers around the world and is used by companies such as eBay and Craigslist, according to MongoDB’s official site.

  7. sqlitebrowser

    Official home of the DB Browser for SQLite (DB4S) project. Previously known as "SQLite Database Browser" and "Database Browser for SQLite". Website at:

    Project mention: Using llama-cookbook “Text2SQL” and really impressed! | dev.to | 2025-03-22

    brew install db-browser-for-sqlite ==> Auto-updating Homebrew... ... ==> Downloading https://github.com/sqlitebrowser/sqlitebrowser/releases/download ==> Downloading from https://objects.githubusercontent.com/github-production-rel ######################################################################### 100.0% ==> Installing Cask db-browser-for-sqlite ==> Moving App 'DB Browser for SQLite.app' to '/Applications/DB Browser for SQLi 🍺 db-browser-for-sqlite was successfully installed!

  8. MMKV

    An efficient, small mobile key-value storage framework developed by WeChat. Works on Android, iOS, macOS, Windows, POSIX, and OHOS.

    Project mention: Understanding security in React Native applications | dev.to | 2024-04-03

    react-native-mmkv is a wrapper around MMKV that allows you to easily implement secure storage in your app. It is arguably the fastest key-value storage for React Native apps

  9. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
  10. Scylla

    NoSQL data store using the Seastar framework, compatible with Apache Cassandra and Amazon DynamoDB

    Project mention: ScyllaDB SSTable Compaction Strategies | news.ycombinator.com | 2025-01-01
  11. ArangoDB

    🥑 ArangoDB is a native multi-model database with flexible data models for documents, graphs, and key-values. Build high performance applications using a convenient SQL-like query language or JavaScript extensions.

    Project mention: List of 45 databases in the world | dev.to | 2024-07-09

    ArangoDB — Native multi-model database supporting graph, document, and key-value data models.

  12. KeyDB

    A Multithreaded Fork of Redis

    Project mention: Redis Inc seeks control over Rust Redis-rs library, talk of trademark concerns | news.ycombinator.com | 2024-11-27

    Yes, nobody says that there's something illegal here. Were it so, Redis is high enough profile project for someone to take a legal action.

    But this is a takeover that is slowly draining the value from the community and directing it to private pockets. E.g. Redis is now source-available.

    There are still compatible alternatives: https://valkey.io/ or https://keydb.dev/, both BSD-licensed.

    I wish RethinkDB was more alive :-\

  13. NebulaGraph Database

    A distributed, fast open-source graph database featuring horizontal scalability and high availability (by vesoft-inc)

  14. manticoresearch

    Easy to use open source fast database for search | Good alternative to Elasticsearch now | Drop-in replacement for E in the ELK soon

    Project mention: GitHub Introduces Sub-Issues | news.ycombinator.com | 2025-01-16
  15. react-native-mmkv

    ⚡️ The fastest key/value storage for React Native. ~30x faster than AsyncStorage!

    Project mention: Creating a React-Native library using New Architecture (JSI, C++) | dev.to | 2025-03-21

    As references I will use the official documentation, as well as the stable React-Native MMKV library. I decided not to waste time creating may own component architecture and used the react-native-mmkv architecture.

  16. better-sqlite3

    The fastest and simplest library for SQLite3 in Node.js.

    Project mention: Supercharge SQLite with Ruby Functions | news.ycombinator.com | 2025-01-27

    These may be useful reading:

    https://github.com/TryGhost/node-sqlite3/issues/408#issue-57...

    https://github.com/WiseLibs/better-sqlite3/issues/32#issueco...

    Copying a quote from the second:

    > The sqlite3 C API serializes all operations (even reads) within a single process. You can parallelize reads to the database but only by having multiple processes, in which case one process being blocked doesn't affect the other processes anyways. In other words, because sqlite3 serializes everything, doing things asynchronously won't speed up database access within a process. It would only free up time for your app to do other things (like HTTP requests to other servers). Unfortunately, the overhead imposed on sqlite3 to serialize asynchronous operations is quite high, making it disadvantageous 95% of the time.

  17. MariaDB

    MariaDB server is a community developed fork of MySQL server. Started by core members of the original MySQL team, MariaDB actively works with outside developers to deliver the most featureful, stable, and sanely licensed open SQL server in the industry. (by MariaDB)

    Project mention: Corgi: The CLI That Tames Your Local Microservices Chaos | dev.to | 2025-03-24

    mariadb

  18. bustub

    The BusTub Relational Database Management System (Educational)

    Project mention: Ash HN: What are some good resources on building a relational database? | news.ycombinator.com | 2024-07-15

    You want our Intro DB Systems course not the Advanced one:

    https://15445.courses.cs.cmu.edu

    Lectures start next month. Or you can watch previous years. Learn to walk before you run.

  19. ydb

    YDB is an open source Distributed SQL Database that combines high availability and scalability with strong consistency and ACID transactions

    Project mention: ScyllaDB no longer open source | news.ycombinator.com | 2024-12-24

    I wonder if this means YDB (from the devs of Clickhouse) will get some traction (https://ydb.tech/) or if there are other massive scale scylladb-types of DB's out there.

  20. kvrocks

    Apache Kvrocks is a distributed key value NoSQL database that uses RocksDB as storage engine and is compatible with Redis protocol.

    Project mention: Redis-compatible distributed key value NoSQL database | news.ycombinator.com | 2025-01-21

    The GitHub Readme seems easier to understand: https://github.com/apache/kvrocks?tab=readme-ov-file

  21. infinity

    The AI-native database built for LLM applications, providing incredibly fast hybrid search of dense vector, sparse vector, tensor (multi-vector), and full-text

    Project mention: What Postgres Full Text Search Is Missing | news.ycombinator.com | 2024-08-06
  22. pgmodeler

    Open-source data modeling tool designed for PostgreSQL. No more typing DDL commands. Let pgModeler do the work for you!

  23. pyodbc

    Python ODBC bridge

  24. heavydb

    HeavyDB (formerly OmniSciDB)

  25. usearch

    Fast Open-Source Search & Clustering engine × for Vectors & 🔜 Strings × in C++, C, Python, JavaScript, Rust, Java, Objective-C, Swift, C#, GoLang, and Wolfram 🔍

    Project mention: Why HNSW Is Not the Answer | news.ycombinator.com | 2024-12-23

    Just tried this against ol’ faithful np.dot, and found the latter to be 8x faster than usearch on 10m brute force scan as described in their readme [1].

    [1] https://github.com/unum-cloud/usearch?tab=readme-ov-file#exa...

  26. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020).

C++ Database discussion

Log in or Post with

C++ Database related posts

  • Building Atomic Counters with Amazon DocumentDB

    2 projects | dev.to | 17 Mar 2025
  • The DuckDB Local UI

    21 projects | news.ycombinator.com | 12 Mar 2025
  • chDB: An In-Process OLAP SQL Engine Powered by ClickHouse

    1 project | news.ycombinator.com | 9 Mar 2025
  • SQLite-on-the-Server Is Misunderstood: Better at Hyper-Scale Than Micro-Scale

    6 projects | news.ycombinator.com | 3 Mar 2025
  • Kùzu – An embeddable, scalable, fast graph database

    1 project | news.ycombinator.com | 25 Feb 2025
  • What XOR is and why it's useful

    3 projects | news.ycombinator.com | 18 Feb 2025
  • Navigating the Economic Viability of Open Source Projects

    1 project | dev.to | 15 Feb 2025
  • A note from our sponsor - CodeRabbit
    coderabbit.ai | 27 Mar 2025
    Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR. Learn more →

Index

What are some of the best open-source Database projects in C++? This list will help you:

# Project Stars
1 ClickHouse 39,645
2 LevelDB 37,297
3 RocksDB 29,331
4 DuckDB 27,884
5 MongoDB 26,929
6 sqlitebrowser 22,060
7 MMKV 17,784
8 Scylla 14,228
9 ArangoDB 13,741
10 KeyDB 11,848
11 NebulaGraph Database 11,171
12 manticoresearch 9,839
13 react-native-mmkv 6,827
14 better-sqlite3 5,959
15 MariaDB 5,929
16 bustub 4,299
17 ydb 4,173
18 kvrocks 3,791
19 infinity 3,375
20 pgmodeler 3,227
21 pyodbc 2,983
22 heavydb 2,975
23 usearch 2,606

Sponsored
CodeRabbit: AI Code Reviews for Developers
Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.
coderabbit.ai

Did you know that C++ is
the 7th most popular programming language
based on number of references?