Source code for erin.db.abc

from abc import ABC, abstractmethod


[docs]class DatabaseDriverBase(ABC): """ Force implementation of some methods in the event a new driver is added to the database package. """
[docs] @abstractmethod async def upsert(self, entity, states): pass
[docs] @abstractmethod async def get(self, entity, state): pass
[docs] @abstractmethod async def increment(self, entity, state, value): pass