-
-
Notifications
You must be signed in to change notification settings - Fork 107
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: race condition when accessing SupabaseClient (#386)
- Loading branch information
Showing
2 changed files
with
98 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
// | ||
// Deprecated.swift | ||
// | ||
// | ||
// Created by Guilherme Souza on 15/05/24. | ||
// | ||
|
||
import Foundation | ||
|
||
extension SupabaseClient { | ||
/// Database client for Supabase. | ||
@available( | ||
*, | ||
deprecated, | ||
message: "Direct access to database is deprecated, please use one of the available methods such as, SupabaseClient.from(_:), SupabaseClient.rpc(_:params:), or SupabaseClient.schema(_:)." | ||
) | ||
public var database: PostgrestClient { | ||
rest | ||
} | ||
|
||
/// Realtime client for Supabase | ||
@available(*, deprecated, message: "Use realtimeV2") | ||
public var realtime: RealtimeClient { | ||
_realtime.value | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters