Description
π We've studied `Equatable` and `Hashable`, their laws, and saw how value types as simple bags of data easily conform via "structural" equality. What about reference types? Reference types are an amalgamation of data _and_ behavior, and that data can be mutated in place at any time, so how can they reasonably conform to these protocols?
π Letβs see how to integrate a SQLite database into a SwiftUI view. We will explore the tools
GRDB provides to query the database so that we can display its data in our UI, as well as
build and enforce table relations to protect the integrity of our app's state. And we will
show how everything...
Published 11/18/24
π Interfacing with SQLite's C library from Swift is possible, but clunky. Luckily there are
friendlier, "Swiftier" interfaces the community has built, so let's take a look at the most
popular: GRDB. We'll explore how it can help us avoid pitfalls and boilerplate required to use
the C library, and...
Published 11/11/24