Swift Reactive Flows
Reactive Flows
Generated SELECT methods can observe table invalidations and re-run when related data changes. Generated INSERT, UPDATE, and DELETE methods notify watchers automatically.
for try await rows in db.task.selectAll().stream() {
tasks = rows
}