akkudoktoreos.core.coreabc.DatabaseMixin
- class akkudoktoreos.core.coreabc.DatabaseMixin
Bases:
objectMixin class for managing EOS database access.
This class serves as a foundational component for EOS-related classes requiring access to the EOS database. It provides a database property that dynamically retrieves the database instance.
- Usage:
Subclass this base class to gain access to the database attribute, which retrieves the global database instance lazily to avoid import-time circular dependencies.
Example
class MyOptimizationClass(PredictionMixin): def store something(self): db = self.database
- __init__()
Methods
__init__()Attributes
- database = <akkudoktoreos.core.database.Database object>