We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c642439 commit 325cf48Copy full SHA for 325cf48
1 file changed
Sources/Otter/Connection.swift
@@ -23,11 +23,14 @@ public protocol Connection: Sendable {
23
}
24
25
/// A no operation database connection that does nothing.
26
-struct NoopConnection: Connection {
27
- func observe(subscriber: any DatabaseSubscriber) {}
28
- func cancel(subscriber: any DatabaseSubscriber) {}
+public struct NoopConnection: Connection {
+ public init() {}
29
30
- func begin<Output>(
+ public func observe(subscriber: any DatabaseSubscriber) {}
+
31
+ public func cancel(subscriber: any DatabaseSubscriber) {}
32
33
+ public func begin<Output>(
34
_ kind: Transaction.Kind,
35
execute: @Sendable (borrowing Transaction) throws -> Output
36
) async throws -> Output {
0 commit comments