Module: Supabase

Defined in:
lib/supabase.rb,
lib/supabase/client.rb,
lib/supabase/version.rb,
lib/supabase/client_options.rb

Defined Under Namespace

Classes: Client, ClientOptions, SupabaseException

Constant Summary collapse

PostgrestAPIResponse =
Postgrest::APIResponse
StorageException =

Storage

Storage::Errors::StorageError
StorageApiError =
Storage::Errors::StorageApiError
AuthError =
Auth::Errors::AuthError
AuthApiError =
Auth::Errors::AuthApiError
AuthImplicitGrantRedirectError =
Auth::Errors::AuthImplicitGrantRedirectError
AuthInvalidCredentialsError =
Auth::Errors::AuthInvalidCredentialsError
AuthRetryableError =
Auth::Errors::AuthRetryableError
AuthSessionMissingError =
Auth::Errors::AuthSessionMissingError
AuthUnknownError =
Auth::Errors::AuthUnknownError
AuthWeakPasswordError =
Auth::Errors::AuthWeakPasswordError
FunctionsError =
Functions::Errors::FunctionsError
FunctionsHttpError =
Functions::Errors::FunctionsHttpError
FunctionsRelayError =
Functions::Errors::FunctionsRelayError
AuthorizationError =
Realtime::Errors::AuthorizationError
NotConnectedError =
Realtime::Errors::NotConnectedError
VERSION =
"1.0.0"

Class Method Summary collapse

Class Method Details

.acreate_client(supabase_url:, supabase_key:, options: {}) ⇒ Object

Alias mirroring supabase-py’s ‘acreate_client` / `create_async_client`. Equivalent to `create_client(…, async: true)`.



59
60
61
# File 'lib/supabase.rb', line 59

def self.acreate_client(supabase_url:, supabase_key:, options: {})
  create_client(supabase_url: supabase_url, supabase_key: supabase_key, options: options, async: true)
end

.create_client(supabase_url:, supabase_key:, options: {}, async: false) ⇒ Object

Factory that matches supabase-py’s ‘supabase.create_client()` signature.



197
198
199
# File 'lib/supabase/client.rb', line 197

def self.create_client(supabase_url:, supabase_key:, options: {}, async: false)
  Client.new(supabase_url: supabase_url, supabase_key: supabase_key, options: options, async: async)
end