GRDBDemo
The main GRDBDemo application demonstrates how GRDB can fuel a SwiftUI application. This demo shows:- Database setup and migrations
- Record types with GRDB protocols
- SwiftUI integration patterns
- Database observation for reactive UI updates
View GRDBDemo Source
Explore the complete source code and implementation details
GRDBQuery Package Demos
The GRDBQuery package includes additional demo applications that use the@Query property wrapper. This property wrapper helps SwiftUI views automatically update their content when the database changes.
GRDBQuery Repository
Access the GRDBQuery package and its demo applications
@Query Property Wrapper
Learn about the Query property wrapper for SwiftUI
Additional Resources
Getting Started
Begin your GRDB journey with the quickstart guide
Sample Code
Browse more sample code in the README
Best Practices
Recommended practices for designing record types
GitHub Discussions
Join the community discussions
What You’ll Learn
These demo applications cover:- Database Architecture: How to structure your database layer
- SwiftUI Integration: Best practices for reactive UI updates
- Record Design: Effective patterns for defining record types
- Migrations: How to evolve your database schema over time
- Testing: Approaches to testing database code