#154154th of 354 in Backends, databases and hosting

sqlite.swift

Type-safe Swift query builder and wrapper over the SQLite3 C API

Releases and problems feed (RSS)

Stars
10.2k
License
MIT
Last commit
Oct 2026
Last release
Oct 2026
Language
Swift
Stars, last 29 weeks+100
6 May 2026: 10,087 stars13 May 2026: 10,093 stars20 May 2026: 10,098 stars27 May 2026: 10,103 stars3 Jun 2026: 10,112 stars10 Jun 2026: 10,115 stars17 Jun 2026: 10,121 stars24 Jun 2026: 10,130 stars1 Jul 2026: 10,133 stars8 Jul 2026: 10,138 stars15 Jul 2026: 10,141 stars22 Jul 2026: 10,144 stars29 Jul 2026: 10,147 stars5 Aug 2026: 10,148 stars12 Aug 2026: 10,155 stars19 Aug 2026: 10,156 stars26 Aug 2026: 10,160 stars2 Sept 2026: 10,161 stars9 Sept 2026: 10,163 stars16 Sept 2026: 10,166 stars23 Sept 2026: 10,167 stars30 Sept 2026: 10,168 stars7 Oct 2026: 10,171 stars14 Oct 2026: 10,174 stars21 Oct 2026: 10,176 stars28 Oct 2026: 10,178 stars4 Nov 2026: 10,181 stars11 Nov 2026: 10,184 stars18 Nov 2026: 10,185 stars25 Nov 2026: 10,187 stars

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

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
Also in Backends, databases and hosting
RankProjectScore
#152shardingsphereSharding, read/write splitting and encryption layer over existing SQL databases20.8k starsApache-2.074 out of 100
#153insforgePostgres-based backend platform that coding agents operate through an MCP server13.4k stars+150 (+1.1%) in 30 daysApache-2.074 out of 100
#155cassandraDistributed partitioned row-store database queried with CQL10.2k starsApache-2.074 out of 100
#156bullmqRedis-based job queue library for Node.js with clients in several languages9.6k stars+91 (+1.0%) in 30 daysMIT74 out of 100
#157pig-mesh/pigSpring Cloud RBAC admin platform with OAuth2 auth, gateway and code generation6.7k starsApache-2.074 out of 100