# fnc12/sqlite_orm

❤️ SQLite ORM light header only library for modern C++

Repository: https://github.com/fnc12/sqlite_orm
Canonical: https://ross.abutalabs.com/products/sqlite_orm
Language: C++
License: AGPL-3.0
License Family: copyleft
Topics: sqlite-orm, crud, orm, cplusplus, cplusplus-14, sqlite, cpp, modern-cpp, sql, sqliteorm, sqlite3, sqlite3-database
Last push: 2026-08-26T15:11:28+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": 3543, "days_push": 7, "days_rel": 576, "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 2691, forks 343 (observed 2026-08-28T04:07:10.953276+00:00)

## What it is
A lightweight, header-only SQLite ORM library for modern C++ (C++14/17/20). It lets you perform CRUD operations and queries with an intuitive, type-safe API without writing raw SQL strings.

## Use cases
- map C++ classes to SQLite tables without writing SQL
- perform CRUD operations on a local SQLite database from C++
- persist application data in C++ with a type-safe ORM
- query SQLite with a fluent one-line-per-query API
- embed a lightweight database layer in a C++ application

## When to choose
- you use modern C++ (14/17/20) and want a header-only SQLite ORM
- you want to avoid raw SQL strings and macros in your data layer
- you need a lightweight embedded database with no external dependencies

## When to avoid
- you need a client-server database like PostgreSQL or MySQL
- your project is closed-source and you cannot accept AGPL or pay for the MIT license
- you need a full-featured ORM with migrations and multi-database support

## Facets
- artifact type: library
- maturity: active
- function: orm, database, database-driver
- domain: databases, developer-tools, backend
- platform: cpp, cross-platform
- tags: sqlite, header-only, c-plus-plus, crud, modern-cpp, sql

## Member repositories
- fnc12/sqlite_orm (main) score 67

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:10.953276+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-30T02:16:33.631151+00:00, confidence not recorded.
  - readme: https://github.com/fnc12/sqlite_orm (fetched 2026-08-28T04:07:10.953276+00:00, sha d1c7f665ce8e)
- Data as of 2026-08-30T08:39:29.467469+00:00.
