Skip to content

Models

AbstractDBSyncStructure

Bases: ABC

Source code in src/charli3_dendrite/backend/dbsync/models.py
10
11
12
13
14
15
16
17
18
19
class AbstractDBSyncStructure(ABC):
    @abstractclassmethod
    def select(cls) -> str:
        """The selectin part of a DBSync query."""
        raise NotImplementedError

    @abstractclassmethod
    def parse(cls, data: dict) -> DendriteBaseModel:
        """Parse data returned from a dbsync query."""
        raise NotImplementedError

parse(data: dict) -> DendriteBaseModel

Parse data returned from a dbsync query.

Source code in src/charli3_dendrite/backend/dbsync/models.py
16
17
18
19
@abstractclassmethod
def parse(cls, data: dict) -> DendriteBaseModel:
    """Parse data returned from a dbsync query."""
    raise NotImplementedError

select() -> str

The selectin part of a DBSync query.

Source code in src/charli3_dendrite/backend/dbsync/models.py
11
12
13
14
@abstractclassmethod
def select(cls) -> str:
    """The selectin part of a DBSync query."""
    raise NotImplementedError