File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -277,6 +277,7 @@ public actor SQLClient {
277277 /// to fail fast with a clear error instead of waiting for FreeTDS to time out.
278278 /// Not called automatically — integrate tests and CI skip it safely this way.
279279 public func checkReachability( server: String , port: UInt16 = 1433 ) async throws {
280+ #if os(iOS) || os(macOS) || os(tvOS) || os(visionOS)
280281 try await withCheckedThrowingContinuation { ( cont: CheckedContinuation < Void , Error > ) in
281282 queue. async {
282283 var readStream : Unmanaged < CFReadStream > ?
@@ -313,6 +314,10 @@ public actor SQLClient {
313314 }
314315 }
315316 }
317+ #else
318+ // Reachability check not implemented for this platform.
319+ return
320+ #endif
316321}
317322
318323 private nonisolated func _connectSync( options: SQLClientConnectionOptions ) throws -> ( login: TDSHandle , connection: TDSHandle ) {
You can’t perform that action at this time.
0 commit comments