EVERYTHING XIAOMI
Get listed

SQLite.swift

SQLite.swift is a free, MIT-licensed Swift library that places a type-safe layer over SQLite3.

Place
#21 of 26
Score
6.2
SQLite.swift's website

What SQLite.swift is

SQLite.swift is a free, MIT-licensed Swift library that places a type-safe layer over SQLite3. It is designed to provide compile-time confidence in SQL statement syntax and intent. An optional-aware SQL expression builder and chainable query layer support composable, lazy-executing queries. Automatically typed data access and parameter binding provide a lightweight interface for Swift applications. Documented capabilities include schema queries, migrations, full-text search, transactions, and WAL-mode and journaling configuration. Through Swift Package Manager, the library supports SQLCipher integration for encrypted databases, including APIs to set or change a database key. SQLite.swift runs on iOS, Linux, and macOS, and can be installed with Swift Package Manager, Carthage, CocoaPods, or manual Xcode integration. Each connection has its own serial execution queue and can be accessed across threads; open transactions and savepoints block other threads. It works offline and provides no data synchronization. The listed price is free.

Good

  • Type-safe Swift interface over SQLite3
  • Supports migrations, full-text search, and transactions
  • Offers SQLCipher integration
  • Runs on iOS, Linux, and macOS
  • MIT-licensed and free

Watch out

  • Provides no data synchronization
  • Shared group containers are discouraged
  • Open transactions block other threads
  • Distributed as source code

Who it suits

It suits Swift developers building local SQLite-backed applications on iOS, macOS, or Linux. It is also relevant when typed queries, migrations, or optional SQLCipher encryption are needed.

Verdict

SQLite.swift offers typed query construction and SQLite features in a Swift-native library. It is a practical fit for offline local databases, provided your design accounts for connection serialization and the documented shared-container warning.

Plans and prices

From SQLite.swift's own pricing page, checked 4 Oct 2026.

All about pricing
PlanPriceWhat it gives you
SQLite.swiftFreeMIT-licensed Swift library · distributed as source code

The facts

Each one read from SQLite.swift's own pages, with the date it was checked.

What it does

Data access
The library provides automatically typed data access and a lightweight interface for queries and parameter binding.checked 4 Oct 2026
Database capabilities
Documented capabilities include schema queries and migrations, full-text search, transactions, and WAL mode and journaling configuration.checked 4 Oct 2026
Encryption integration
SQLite.swift supports SQLCipher through Swift Package Manager, including APIs to set and change a database key.checked 4 Oct 2026
Install options
The project documents installation through Swift Package Manager, Carthage, CocoaPods, or manual Xcode project integration.checked 4 Oct 2026
License
SQLite.swift is available under the MIT license.checked 4 Oct 2026
Purpose
SQLite.swift is a type-safe, Swift-language layer over SQLite3 that provides compile-time confidence in SQL statement syntax and intent.checked 4 Oct 2026
Query building
It includes a type-safe, optional-aware SQL expression builder and a flexible, chainable, lazy-executing query layer.checked 4 Oct 2026
Security
The project documents optional SQLCipher support for encrypted databases; it does not state a compliance certification on the pages reviewed.checked 4 Oct 2026
Shared containers
The documentation advises against storing databases in a shared group container because some users have reported crashes.checked 4 Oct 2026
Support
The README directs questions to Stack Overflow under the sqlite.swift tag, bug reports and feature requests to GitHub issues, and contributions to pull requests.checked 4 Oct 2026
Thread safety
Each connection has its own serial queue for statement execution and can be accessed across threads; open transactions and savepoints block other threads from executing statements.checked 4 Oct 2026

Where it runs

Platforms
The project says it works on Linux with some limitations; its documentation includes macOS and iOS setup and platform declarations.checked 4 Oct 2026

Alternatives to SQLite.swift

All alternatives
  1. 1

    Hive

    Free planOpen sourceAndroidiOSWebAPI
    8.6From $5 a month
  2. 2Firestore logo

    Firestore

    Free planAndroidiOSWebAPI
    8.1$0.03 usage-based
  3. 3

    SQLDelight

    Free planOpen sourceAndroidiOSWebAPI
    7.9Free plan
  4. 4

    PouchDB

    Free planOpen sourceAndroidiOSWebAPI
    7.8Free plan
  5. 5Sparksee logo

    Sparksee

    Free planAndroidiOSAPILinux
    7.6Free plan
  6. 6RxDB logo

    RxDB

    Free planAndroidiOSWebAPI
    7.5From $99 a month