akkudoktoreos.core.coreabc.DatabaseMixin

class akkudoktoreos.core.coreabc.DatabaseMixin

Bases: object

Mixin 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.

database

Property to access the global EOS database.

Type:

Database

Example

class MyOptimizationClass(PredictionMixin):
    def store something(self):
        db = self.database
__init__()

Methods

__init__()

Attributes

database

database = <akkudoktoreos.core.database.Database object>