A toolkit for SQLite databases, with a focus on application development

Swift version 5 Supported platforms MIT License Build Status

View on Github

Latest release: January 17, 2020 • version 4.9.0 • Release Notes

Requirements: iOS 9.0+ / OSX 10.9+ / watchOS 2.0+ • Swift 4.2+ / Xcode 10+

Links: FeaturesDocumentationGeneral Guides & Good PracticesReference

Contact: @groue

What is this?

GRDB provides raw access to SQL and advanced SQLite features, because one sometimes enjoys a sharp tool. It has robust concurrency primitives, so that multi-threaded applications can efficiently use their databases. It grants your application models with persistence and fetching methods, so that you don't have to deal with SQL and raw database rows when you don't want to.

Compared to SQLite.swift or FMDB, GRDB can spare you a lot of glue code. Compared to Core Data or Realm, it can simplify your multi-threaded applications.

How does it look like?

See more GRDB sample code on Github.