Files
luma/Sources/LumaCore/Persistence/StoreObservation.swift
Ole André Vadla Ravnås ebb1fdbeea Hide GRDB types behind StoreObservation wrapper
Consumers of ProjectStore no longer need to import GRDB.
The AnyDatabaseCancellable return type is wrapped in a
public StoreObservation class that keeps the cancellable
alive for the observation's lifetime.

Also fix stale variable name in attachToProcess.
2026-04-06 21:54:22 +02:00

10 lines
201 B
Swift

import GRDB
public final class StoreObservation {
private let cancellable: AnyDatabaseCancellable
init(_ cancellable: AnyDatabaseCancellable) {
self.cancellable = cancellable
}
}