# groue/GRDB.swift

A toolkit for SQLite databases, with a focus on application development

Repository: https://github.com/groue/GRDB.swift
Canonical: https://ross.abutalabs.com/products/grdbswift
Language: Swift
License: MIT
License Family: permissive
Topics: sqlite, database, sql, sql-builder, grdb, spm, sqlite-databases, database-observation
Last push: 2026-08-08T08:57:22+00:00

## Health v2 (maintenance only)
Score: 94/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 96, release rhythm 89, longevity 100
- inputs: {"age_days": 4082, "days_push": 25, "days_rel": 76, "gap_med": 21.5, "n_releases_24m": 17}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 8623, forks 1036 (observed 2026-08-28T04:10:23.856896+00:00)

## What it is
GRDB.swift is a Swift toolkit for working with SQLite databases, focused on application development. It provides record persistence, type-safe SQL generation, database observation, migrations, and robust concurrency support.

## Use cases
- persist app data in sqlite on ios
- observe database changes reactively in swift
- run database migrations as app versions ship
- query sqlite without writing raw sql
- use sqlite concurrently from multiple threads
- map swift structs to database records

## When to choose
- you are building an iOS, macOS, tvOS, or watchOS app that needs local persistence
- you want reactive database observation with concurrent reads and writes
- you need schema migrations for evolving app data
- you want both raw SQL access and higher-level record APIs

## When to avoid
- your app targets Android or non-Apple platforms
- you need a client-server database like PostgreSQL or MySQL
- you prefer Core Data or SwiftData ecosystem integration

## Facets
- artifact type: library
- maturity: stable
- function: database, orm, database-driver, concurrency
- domain: databases, mobile-development, developer-tools, cross-platform
- platform: -
- tags: sqlite, swift, database-observation, migrations, sql-builder, wal-mode, spm, ios, macos, mobile, desktop

## Member repositories
- groue/GRDB.swift (main) score 94

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:10:23.856896+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-29T17:25:52.533306+00:00, confidence not recorded.
  - readme: https://github.com/groue/GRDB.swift (fetched 2026-08-28T04:10:23.856896+00:00, sha 00be17cb279f)
- Data as of 2026-08-30T08:39:29.467469+00:00.
