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.
10 lines
201 B
Swift
10 lines
201 B
Swift
import GRDB
|
|
|
|
public final class StoreObservation {
|
|
private let cancellable: AnyDatabaseCancellable
|
|
|
|
init(_ cancellable: AnyDatabaseCancellable) {
|
|
self.cancellable = cancellable
|
|
}
|
|
}
|