akkudoktoreos.core.databaseabc.DatabaseRecordProtocolLoadPhase

class akkudoktoreos.core.databaseabc.DatabaseRecordProtocolLoadPhase(*values)

Bases: Enum

Database loading phases.

NONE:

No records have been loaded from the database.

INITIAL:

A limited initial time window has been loaded, typically centered around a target datetime.

FULL:

All records in the database have been loaded into memory.

The phase controls whether further calls to db_ensure_loaded may trigger additional database access.

__init__(*args, **kwds)

Attributes

NONE

INITIAL

FULL

NONE = 1
INITIAL = 2
FULL = 3
classmethod __contains__(value)

Return True if value is in cls.

value is in cls if: 1) value is a member of cls, or 2) value is the value of one of the cls’s members. 3) value is a pseudo-member (flags)

classmethod __getitem__(name)

Return the member matching name.

classmethod __iter__()

Return members in definition order.

classmethod __len__()

Return the number of members (no aliases)