C Database

Open-source C projects categorized as Database

Top 23 C Database Projects

  1. Redis

    For developers, who are building real-time data-driven applications, Redis is the preferred, fastest, and most feature-rich cache, data structure server, and document and vector query engine.

    Project mention: Redis in Docker: Fix Connection Refused, NOAUTH and MISCONF | dev.to | 2026-11-06

    The image docs show how to start Redis with your own redis.conf. If you start from the upstream file, note that the 8.10.3 version from the redis/redis repository contains bind 127.0.0.1 -::1 and protected-mode yes. Mounted as-is, Redis answers inside its own container and refuses everyone else:

  2. SaaSHub

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

    SaaSHub logo
  3. valkey

    A flexible distributed key-value database that is optimized for caching and other realtime workloads.

    Project mention: The Redis Service Count Cannot Identify Valkey Cluster Mode | dev.to | 2026-11-13

    Valkey advisory GHSA-f4q9-j22m-xqq9

  4. TDengine

    High-performance, scalable time-series database designed for Industrial IoT (IIoT) scenarios

    Project mention: TDengine: 3,216 title matches, no application fingerprint, and an empty port check | dev.to | 2026-10-23

    TDengine project repository: https://github.com/taosdata/TDengine

  5. TimescaleDB

    A time-series database for high-performance real-time analytics packaged as a Postgres extension

    Project mention: TimescaleDB compresses time-series data | news.ycombinator.com | 2026-06-15
  6. libsql

    libSQL is a fork of SQLite that is both Open Source, and Open Contributions.

    Project mention: rqlite, dqlite y Litestream: SQLite distribuido | dev.to | 2026-10-24
  7. citus

    Distributed PostgreSQL as an extension

    Project mention: How I Approach Database Sharding for Growing SaaS Applications | dev.to | 2026-10-20

    Citus extends PostgreSQL with transparent sharding:

  8. WCDB

    WCDB is a cross-platform database framework developed by WeChat.

  9. yugabyte-db

    YugabyteDB - the cloud native distributed SQL database for mission-critical applications.

    Project mention: How to Do Pagination Right: Row Comparison, Datatypes, and Index Range Scans | dev.to | 2026-10-05

    Issue #11794 remains open, and a July 2026 issue still describes those row-comparison bounds as loose bounds requiring recheck. For the original index and ordering, I would still use the decomposed predicate and verify it with:

  10. db_tutorial

    Writing a sqlite clone from scratch in C

    Project mention: What Building Redis, Git and an LLM From Scratch Taught Us About Using Them | dev.to | 2026-10-05

    Slow e-commerce queries. Let's Build a Simple Database teaches indexes and transactions from the inside.

  11. letos

    A free, open source, multi-platform SQLite database manager.

    Project mention: Letos: Create, edit, browse SQLite databases | news.ycombinator.com | 2026-08-10
  12. Hiredis

    Minimalistic C client for Redis >= 1.2

  13. dqlite

    Embeddable, replicated and fault-tolerant SQL engine.

    Project mention: Twelve Years of Distributed SQLite | news.ycombinator.com | 2026-10-23

    I feel like there should be a comparison table listing all of these engines and how they compare on their external dependencies, whether a single leader/any node can write, their shape (embeddable library vs server), etc.

    IMHO support for transactions is a pretty important dividing line. Some engines support full SQLite transactions while others - like rqlite - don't officially support BEGIN/COMMIT [0], which matters if you rely on multi-statement transactions.

    A friend/colleague has been building Python bindings to dqlite [1] (DB-API and SQLAlchemy), which may interest folks here. dqlite has full support for transactions, and like rqlite needs nothing external (no S3, no Consul).

    No knock on rqlite or any other engine - dqlite has warts too [2].

    [0] https://rqlite.io/docs/faq/#does-rqlite-support-transactions

    [1] https://github.com/letsdiscodev/python-dqlite-dbapi

    [2] https://github.com/canonical/dqlite/issues/882 opened by my friend, https://github.com/canonical/dqlite/issues/908 , https://github.com/canonical/dqlite/issues/912 opened by me

  14. orioledb

    OrioleDB – building a modern cloud-native storage engine (... and solving some PostgreSQL wicked problems)

    Project mention: Postgres rewritten in Rust v0.2, now faster than Postgres and ClickHouse | news.ycombinator.com | 2026-07-30

    Port in OrioleDB next please. If our wish-granting really is at such a state. https://github.com/orioledb/orioledb

  15. psycopg2

    PostgreSQL database adapter for the Python programming language

  16. mydumper

    Official MyDumper Project

    Project mention: De $1,432 a $233/mes: migrar de DigitalOcean a Hetzner sin downtime | dev.to | 2026-04-18
  17. PolarDB-for-PostgreSQL

    A cloud-native database based on PostgreSQL developed by Alibaba Cloud.

  18. LMDB

    Read-only mirror of official repo on openldap.org. Issues and pull requests here are ignored. Use OpenLDAP ITS for issues.

  19. FlashDB

    An ultra-lightweight database that supports key-value and time series data | 一款支持 KV 数据和时序数据的超轻量级数据库

  20. PipelineDB

    High-performance time-series aggregation for PostgreSQL

  21. unqlite

    An Embedded NoSQL, Transactional Database Engine

    Project mention: UnQLite Embedded Database Engine 1.2.1 Released | news.ycombinator.com | 2026-05-02
  22. SQLite

    Unofficial git mirror of SQLite sources (see link for build instructions) (by mackyle)

  23. Sophia

    Modern transactional key-value/row storage library.

  24. hypopg

    Hypothetical Indexes for PostgreSQL

    Project mention: What if database branching was easy? | news.ycombinator.com | 2026-04-20

    > Imagine you need to add an index to a table with a few million rows. On a seeded database with 200 rows, the migration runs in milliseconds. Obviously. But on a branch with realistic data, it takes 40 seconds and needs CREATE INDEX CONCURRENTLY to avoid locking the table. The branch is isolated, so locking there isn't the issue — the point is that the rehearsal shows the production migration would need CONCURRENTLY.

    A few million rows should take at most, on the most awful networked storage available, maybe 10 seconds. I just built an index locally on 10,000,000 rows in 4 seconds. Moreover, though, there are vanishingly few cases where you wouldn't want to use CONCURRENTLY in prod - you shouldn't need to run a test to tell you that.

    IMO branching can be a cool feature, but the use I keep seeing touted (indexes) doesn't seem like a good one for it. You should have a pretty good idea how an index is going to behave before you build it, just from understanding the RDBMS. There are also tools like hypopg [0], which are also available on cloud providers.

    A better example would be showing testing a large schema change, like normalizing a JSON blob into proper columns or something, where you need to validate performance before committing to it.

    0: https://github.com/HypoPG/hypopg

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

  • The Redis Service Count Cannot Identify Valkey Cluster Mode

    1 project | dev.to | 13 Nov 2026
  • Redis in Docker: Fix Connection Refused, NOAUTH and MISCONF

    2 projects | dev.to | 6 Nov 2026
  • How I built a fair waiting room with OpenResty and one Valkey script

    2 projects | dev.to | 5 Nov 2026
  • Redis 8.12 RC2's SEXPIRE command cuts a set membership check from two round trips to one

    1 project | dev.to | 2 Nov 2026
  • rqlite, dqlite y Litestream: SQLite distribuido

    6 projects | dev.to | 24 Oct 2026
  • TDengine: 3,216 title matches, no application fingerprint, and an empty port check

    1 project | dev.to | 23 Oct 2026
  • How I Approach Database Sharding for Growing SaaS Applications

    1 project | dev.to | 20 Oct 2026
  • A note from our sponsor - SaaSHub
    www.saashub.com | 17 Nov 2026
    SaaSHub helps you find the best software and product alternatives Learn more →

Index

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

# Project Stars
1 Redis 77,525
2 valkey 27,721
3 TDengine 25,188
4 TimescaleDB 23,860
5 libsql 17,330
6 citus 12,858
7 WCDB 11,651
8 yugabyte-db 10,661
9 db_tutorial 10,509
10 letos 6,827
11 Hiredis 6,694
12 dqlite 4,426
13 orioledb 4,316
14 psycopg2 3,665
15 mydumper 3,258
16 PolarDB-for-PostgreSQL 3,208
17 LMDB 3,062
18 FlashDB 2,894
19 PipelineDB 2,665
20 unqlite 2,303
21 SQLite 1,953
22 Sophia 1,888
23 hypopg 1,751

Sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
Developer survey
Take the C Developer Survey

About 6 minutes on the tools, libraries and AI you use with C. You get the results by email.