# SRombauts/SQLiteCpp

SQLiteC++ (SQLiteCpp) is a smart and easy to use C++ SQLite3 wrapper.

Repository: https://github.com/SRombauts/SQLiteCpp
Canonical: https://ross.abutalabs.com/products/sqlitecpp
Homepage: http://srombauts.github.io/SQLiteCpp
Language: C
License: MIT
License Family: permissive
Last push: 2026-08-25T21:03:04+00:00

## Health v2 (maintenance only)
Score: 67/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 8, longevity 100
- inputs: {"age_days": 5256, "days_push": 8, "days_rel": 470, "gap_med": null, "n_releases_24m": 1}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2780, forks 572 (observed 2026-08-28T04:07:21.518050+00:00)

## What it is
SQLiteC++ (SQLiteCpp) is a lean, easy-to-use C++ wrapper around the native C APIs of SQLite3, offering intuitive, well-documented C++ classes. It uses RAII and exceptions, keeps dependencies minimal (C++11 STL and SQLite3), and is portable and MIT-licensed.

## Use cases
- use sqlite from c++ without raw c api calls
- embed a lightweight sql database in a c++ application
- execute sql queries with prepared statements in c++
- manage sqlite transactions with raii in c++
- store and query local data in a cross-platform c++ app
- wrap sqlite3 with exception-based error handling

## When to choose
- you need a modern C++11 interface to SQLite with RAII and exceptions
- you want minimal dependencies and a light, fast embedded database layer
- you need a permissive MIT license for commercial use
- you want a well-documented, well-maintained wrapper with good test coverage

## When to avoid
- you need an ORM with schema migrations and entity mapping
- you require a client-server SQL database rather than embedded SQLite
- you need full thread-safety beyond SQLite's multi-thread mode
- your project does not use C++11 or newer

## Facets
- artifact type: library
- maturity: stable
- function: database-driver, database
- domain: databases, developer-tools, cross-platform
- platform: cpp, cross-platform, windows
- tags: sqlite, sqlite3, cpp, raii, database-wrapper, c-plus-plus, linux, macos

## Member repositories
- SRombauts/SQLiteCpp (main) score 67

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:21.518050+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T08:16:07.321460+00:00, confidence not recorded.
  - readme: https://github.com/SRombauts/SQLiteCpp (fetched 2026-08-28T04:07:21.518050+00:00, sha 81c0eaa6ae14)
  - homepage: http://srombauts.github.io/SQLiteCpp (fetched 2026-08-29T09:55:26.205330+00:00, sha 7dda4110a296)
- Data as of 2026-08-30T08:39:29.467469+00:00.
