#154154th of 354 in Backends, databases and hosting
sqlite.swift
Type-safe Swift query builder and wrapper over the SQLite3 C API
- Stars
- 10.2k
- License
- MIT
- Last commit
- Oct 2026
- Last release
- Oct 2026
- Language
- Swift
10,087 on 6 May 202610,187 on 25 Nov 2026
From GitHub's daily star counts.
Checked on GitHub.
Overview
SQLite.swift is a pure-Swift library that wraps SQLite3 with a typed, optional-aware expression builder for creating tables and running insert, select, update and delete statements. It also exposes a thin wrapper over the C API for raw SQL with parameter binding. It covers full-text search, schema queries and migrations, WAL mode configuration, and SQLCipher via Swift Package Manager. It has no AI features.
Who it is for: Swift developers embedding SQLite in iOS, macOS or Linux apps
Strengths
- Compile-time typed columns and expressions, with optional-aware Swift types
- Supports raw SQL with parameter binding alongside the query builder
- SQLCipher encryption supported via Swift Package Manager
- Installs through Swift Package Manager, CocoaPods, Carthage or as an Xcode sub-project
Weaknesses
- Iterating prepare(_:) force-tries each step and crashes on SQLITE_BUSY or I/O errors
- Linux support has limitations
- Must write SQLite.Expression to avoid a clash with SwiftUI.Expression
- No AI or LLM functionality; fits this list only loosely
What it needs
- no GPU
- Needs SQLite3, Swift
What changed
From the release notes. No flag means the note does not say so, not that the upgrade is safe.
Known problems
Reported, then fixed by a linked change
- Column check constraints generate a syntax error ↗ (opens in a new tab)0 reactions · closed 13 Sept 2026Fixed by Fix invalid SQL for column-level CHECK constraints using range/BETWEEN expressions ↗ (opens in a new tab)
- Recurring crash when connection object goes out of scope ↗ (opens in a new tab)0 reactions · closed 13 Sept 2026Fixed by Fix recurring crash when Connection deinitializes ↗ (opens in a new tab)
- error: no such module 'SQLite3' ↗ (opens in a new tab)0 reactions · closed 26 Feb 2026Fixed by Fix compilation on Linux ↗ (opens in a new tab)
Titles are the reporters' own words, taken from the project's GitHub issues and ranked by reactions. We have not tried to reproduce any of them.
Also in Backends, databases and hosting
See all 354| Rank | Project | Score |
|---|---|---|
| #152 | shardingsphereSharding, read/write splitting and encryption layer over existing SQL databases | 74 out of 100 |
| #153 | insforgePostgres-based backend platform that coding agents operate through an MCP server | 74 out of 100 |
| #155 | cassandraDistributed partitioned row-store database queried with CQL | 74 out of 100 |
| #156 | bullmqRedis-based job queue library for Node.js with clients in several languages | 74 out of 100 |
| #157 | pig-mesh/pigSpring Cloud RBAC admin platform with OAuth2 auth, gateway and code generation | 74 out of 100 |