GRDB.swift is a comprehensive SQLite toolkit and object-relational mapper for Swift. It provides a database wrapper that handles local data persistence, connection management, and encrypted file storage for Apple platforms.
The library features a dedicated observation framework that tracks database changes to automatically synchronize the application state and user interface in real time. It distinguishes itself with a type-safe query builder and a protocol-based mapping system that converts database rows into structured Swift objects.
The toolkit covers a broad range of administrative and operational capabilities, including versioned schema migrations, record upserts, and the storage of complex types as JSON. It also includes utilities for database backups, memory reclamation, and the execution of raw SQL with bound arguments.