For a database library for Swift applications, the strongest matches are realm/realm-swift (Realm is a native mobile database that provides object-oriented), groue/grdb.swift (GRDB) and tencent/wcdb (WCDB is a robust, cross-platform ORM built on SQLite). stephencelis/sqlite.swift is also worth a look. Each is ranked by relevance to your query, popularity and recent activity.
We curate open-source GitHub repositories matching “best swift database libraries”. Results are ranked by relevance to your query — pick filters below to narrow, or refine with AI.
This is a mobile object database and NoSQL local data store that replaces relational tables with a schema-based model. It functions as a reactive data store, using live object observations and change notifications to trigger automatic user interface refreshes. The system provides built-in mobile cloud data synchronization to keep local datasets consistent with a remote server across multiple devices. It also includes security features for encrypted local storage, protecting sensitive on-disk data using at-rest encryption keys and fine-grained access control. Broad capabilities include object
Realm is a native mobile database that provides object-oriented persistence, reactive data binding, and encryption, making it a comprehensive solution for local data management in Swift applications.
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 o
GRDB.swift is a comprehensive, native Swift toolkit that provides robust object-relational mapping, ACID-compliant SQLite persistence, and built-in reactive observation for real-time UI synchronization.
WCDB is a cross-platform storage layer and embedded database engine that serves as a framework for SQLite. It functions as an object relational mapper, linking application classes to database tables to enable data operations via objects rather than raw queries. The project is distinguished by an integrated encryption layer for securing data at rest and a full-text search engine that uses language-specific tokenizers for text lookups. It also features transparent field compression to reduce storage footprints and a connection-pooling model to coordinate simultaneous read and write operations a
WCDB is a robust, cross-platform ORM built on SQLite that provides native Swift interfaces for object-relational mapping, encryption, and performance-focused database management on Apple platforms.
SQLite.swift is a type-safe Swift wrapper and object-relational mapping layer that provides a bridge for interacting with SQLite databases. It functions as a database driver that allows for embedded database management and local data persistence within Swift applications. The project distinguishes itself through a type-safe expression builder that verifies SQL statement syntax and intent at compile time. It includes specialized support for high-performance text matching via full-text search integration and provides mechanisms for securing sensitive data through database encryption. The libra
This library provides a type-safe, native Swift interface for SQLite that handles object-relational mapping, ACID-compliant transactions, and encryption, making it a robust choice for local data persistence in Apple ecosystem applications.