def DatabaseEnabled(cls):
    if not issubclass(cls, Storable):
        raise ValueError(
            "%s is not a subclass of gludb.datab.Storage" % repr(cls)
        )

    cls.ensure_table = classmethod(_ensure_table)
    cls.find_one = classmethod(_find_one)
    cls.find_all = classmethod(_find_all)
    cls.find_by_index = classmethod(_find_by_index)
    cls.save = _save

    return cls
Create a `cls` entity from a context.
dataset/ETHPy150Open memphis-iis/GLUDB/gludb/data.py/DatabaseEnabled--crossover with--dataset/ETHPy150Open Workiva/furious/furious/extras/appengine/ndb_persistence.py/FuriousContext.from_context