Common
The common package contains settings parameters and error exceptions.
Settings
- class firebolt.common.settings.Settings(auth: ~firebolt.client.auth.base.Auth = <factory>, account_name: str = <factory>, server: str = <factory>, default_region: str = <factory>)
Bases:
objectSettings for Firebolt SDK.
- user
User name
- Type:
Optional[str]
- password
User password
- Type:
Optional[str]
- access_token
Access token to use for authentication Mutually exclusive with user and password
- Type:
Optional[str]
- account_name
Account name Default user account is used if none provided
- Type:
Optional[str]
- server
Environment api endpoint (Advanced) Default api endpoint is used if none provided
- Type:
Optional[str]
- default_region
Default region for provisioning
- Type:
str
- firebolt.common.settings.auth_from_env() Auth
- firebolt.common.settings.from_env(var_name: str, default: Any = None) Callable
Exception
- exception firebolt.utils.exception.AccountNotFoundError(account_name: str)
Bases:
FireboltErrorAccount with provided name doesn’t exist.
- Parameters:
account_name (str) – Name of account that wasn’t found
- account_name
Name of account that wasn’t found
- Type:
str
- exception firebolt.utils.exception.AccountNotFoundOrNoAccessError(account_name: str)
Bases:
FireboltErrorAccount with provided name doesn’t exist.
- Parameters:
account_name (str) – Name of account that wasn’t found
- account_name
Name of account that wasn’t found
- Type:
str
- exception firebolt.utils.exception.AlreadyBoundError
Bases:
FireboltEngineErrorEngine is already bound to a database.
Bases:
ProgrammingErrorIf use_standard_sql is specified the query status endpoint returns a JSON object with empty values instead of a proper status object. In that case, it is not possible to retrieve the results of an asynchronous query.
- exception firebolt.utils.exception.AttachedEngineInUseError(method_name: str)
Bases:
FireboltDatabaseErrorEngine unavailable because it’s starting/stopping.
- Parameters:
method_name (str) – Method that caused the error
- method_name
Method that caused the error
- Type:
str
- exception firebolt.utils.exception.AuthenticationError(cause: str)
Bases:
FireboltErrorFirebolt authentication error.
Stores error cause and authentication endpoint.
- Parameters:
api_endpoint (str) – Environment api endpoint used for authentication
cause (str) – Reason for authentication failure
- api_endpoint
Environment api endpoint used for authentication
- Type:
str
- cause
Reason for authentication failure
- Type:
str
- exception firebolt.utils.exception.AuthorizationError(cause: str)
Bases:
FireboltErrorFirebolt authentication error.
- Parameters:
cause (str) – Reason for authorization failure
- cause
Reason for authorization failure
- Type:
str
- exception firebolt.utils.exception.ConfigurationError
Bases:
InterfaceErrorInvalid configuration error.
- exception firebolt.utils.exception.ConnectionClosedError
Bases:
ConnectionErrorConnection operations are unavailable since it’s closed.
- exception firebolt.utils.exception.ConnectionError
Bases:
FireboltErrorBase class for connection related errors.
- exception firebolt.utils.exception.CursorClosedError(method_name: str)
Bases:
CursorErrorCursor operations are unavailable since it’s closed.
- Parameters:
method_name (str) – Method that caused the error
- method_name
Method that caused the error
- Type:
str
- exception firebolt.utils.exception.CursorError
Bases:
FireboltErrorBase class for cursor related errors.
- exception firebolt.utils.exception.DataError
Bases:
DatabaseErrorData processing error.
Exception raised for errors that are due to problems with the processed data, like division by zero, numeric value out of range, etc.
- exception firebolt.utils.exception.DatabaseError
Bases:
FireboltErrorException raised for errors that are related to the database.
- exception firebolt.utils.exception.DatabaseNotFoundError(database_name: str)
Bases:
FireboltErrorDatabase with provided name was not found.
- exception firebolt.utils.exception.EngineNotFoundError(engine_name: str)
Bases:
FireboltEngineErrorEngine with provided name was not found.
- exception firebolt.utils.exception.EngineNotRunningError(engine_name: str)
Bases:
FireboltEngineErrorEngine that’s being queried is not running.
- firebolt.utils.exception.Error
alias of
FireboltError
- exception firebolt.utils.exception.FireboltDatabaseError
Bases:
FireboltErrorBase class for database related errors.
- exception firebolt.utils.exception.FireboltEngineError
Bases:
FireboltErrorBase class for engine related errors.
- exception firebolt.utils.exception.FireboltError
Bases:
ExceptionBase class for all Firebolt errors.
- exception firebolt.utils.exception.InstanceTypeNotFoundError(instance_type_name: str)
Bases:
FireboltErrorInstance type with provided name was not found.
- exception firebolt.utils.exception.IntegrityError
Bases:
DatabaseErrorDatabase data integrity error.
Exception raised when the relational integrity of the database is affected, e.g., a foreign key check fails.
- exception firebolt.utils.exception.InterfaceError
Bases:
FireboltErrorDatabase interface related error.
Exception raised for errors that are related to the database interface rather than the database itself.
- exception firebolt.utils.exception.InternalError
Bases:
DatabaseErrorDatabase internal error.
Exception raised when the database encounters an internal error, e.g., the cursor is not valid anymore, the transaction is out of sync, etc.
- exception firebolt.utils.exception.NoAttachedDatabaseError(method_name: str)
Bases:
FireboltEngineErrorEngine that’s being accessed is not running.
- Parameters:
method_name (str) – Method that caused the error
- method_name
Method that caused the error
- Type:
str
- exception firebolt.utils.exception.NotSupportedError
Bases:
DatabaseErrorOperation not supported.
Exception raised in case a method or database API was used which is not supported by the database, e.g., requesting a .rollback() on a connection that does not support transaction or has transactions turned off.
- exception firebolt.utils.exception.OperationalError
Bases:
DatabaseErrorDatabase operating error.
Exception raised for errors that are related to the database’s operation and not necessarily under the control of the programmer, e.g., an unexpected disconnect occurs, the data source name is not found, a transaction could not be processed, a memory allocation error occurred during processing, etc.
- exception firebolt.utils.exception.ProgrammingError
Bases:
DatabaseErrorDatabase programming error.
Exception raised for programming errors, e.g., table not found or already exists, syntax error in the SQL statement, wrong number of parameters specified, etc.
- exception firebolt.utils.exception.QueryNotRunError(method_name: str)
Bases:
CursorErrorSome cursor methods are unavailable before a query is run.
- Parameters:
method_name (str) – Method that caused the error
- method_name
Method that caused the error
- Type:
str
- exception firebolt.utils.exception.Warning
Bases:
ExceptionBase class for warning exceptions.
Exception raised for important warnings, like data truncations while inserting, etc.