For an object relational mapping library for Swift, the strongest matches are groue/grdb.swift (GRDB), tencent/wcdb (WCDB is a robust object-relational mapping framework for SQLite) and stephencelis/sqlite.swift (This library provides a type-safe wrapper and ORM layer). vapor/fluent 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 orm libraries”. Results are ranked by relevance to your query — pick filters below to narrow, or refine with AI.
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 SQLite toolkit and ORM for Swift that provides a type-safe query builder, robust model mapping, migration management, and full support for modern Swift concurrency.
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 object-relational mapping framework for SQLite that provides type-safe query building, model mapping, and migration management, making it a direct fit for your Swift database needs.
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 wrapper and ORM layer for SQLite in Swift, offering robust model mapping, schema migration support, and a compile-time verified query builder.
Vapor ORM (queries, models, and relations) for NoSQL and SQL databases
Fluent is the primary ORM for the Swift ecosystem, providing a type-safe query builder, robust model mapping, migration management, and native support for SQLite with full async/await integration.