firebolt.common package
firebolt.common.exception module
- exception firebolt.common.exception.AccountNotFoundError(method_name: str)
- exception firebolt.common.exception.AlreadyBoundError
- exception firebolt.common.exception.AttachedEngineInUseError(method_name: str)
- exception firebolt.common.exception.AuthenticationError(cause: str, api_endpoint: str)
Bases:
firebolt.common.exception.FireboltError
Firebolt authentication error. Stores error cause and authentication endpoint.
- exception firebolt.common.exception.ConnectionClosedError
- exception firebolt.common.exception.ConnectionError
- exception firebolt.common.exception.CursorClosedError(method_name: str)
- exception firebolt.common.exception.CursorError
- exception firebolt.common.exception.DataError
Bases:
firebolt.common.exception.DatabaseError
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.common.exception.DatabaseError
Bases:
firebolt.common.exception.FireboltError
Exception raised for errors that are related to the database.
- exception firebolt.common.exception.EngineNotRunningError
- firebolt.common.exception.Error
- exception firebolt.common.exception.FireboltDatabaseError
- exception firebolt.common.exception.FireboltEngineError
Bases:
firebolt.common.exception.FireboltError
Base error for engine errors.
- exception firebolt.common.exception.FireboltError
Bases:
Exception
- exception firebolt.common.exception.IntegrityError
Bases:
firebolt.common.exception.DatabaseError
Exception raised when the relational integrity of the database is affected, e.g. a foreign key check fails.
- exception firebolt.common.exception.InterfaceError
Bases:
firebolt.common.exception.FireboltError
Exception raised for errors that are related to the database interface rather than the database itself.
- exception firebolt.common.exception.InternalError
Bases:
firebolt.common.exception.DatabaseError
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.common.exception.NoAttachedDatabaseError(method_name: str)
- exception firebolt.common.exception.NotSupportedError
Bases:
firebolt.common.exception.DatabaseError
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.common.exception.OperationalError
Bases:
firebolt.common.exception.DatabaseError
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.common.exception.ProgrammingError
Bases:
firebolt.common.exception.DatabaseError
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.common.exception.QueryError
- exception firebolt.common.exception.QueryNotRunError(method_name: str)
- exception firebolt.common.exception.Warning
Bases:
Exception
Exception raised for important warnings like data truncations while inserting, etc.
firebolt.common.settings module
- class firebolt.common.settings.Settings(_env_file: Optional[Union[str, os.PathLike]] = '<object object>', _env_file_encoding: Optional[str] = None, _env_nested_delimiter: Optional[str] = None, _secrets_dir: Optional[Union[str, os.PathLike]] = None, *, account_name: str = None, server: str, user: str, password: pydantic.types.SecretStr, default_region: str)
Bases:
pydantic.env_settings.BaseSettings
- account_name: str
- default_region: str
- password: pydantic.types.SecretStr
- server: str
- user: str
- class firebolt.common.util.AsyncJobThread
Bases:
object
Thread runner that allows running async tasks syncronously in a separate thread. Caches loop to be reused in all threads It allows running async functions syncronously inside a running event loop. Since nesting loops is not allowed, we create a separate thread for a new event loop
- execute(coro: Coroutine) Any
- run(coro: Coroutine) None