|
OpenQuizz
Une application de gestion des contenus pédagogiques
|


Public Member Functions | |
| def | __contains__ (self, sha) |
| def | has_object (self, sha) |
| def | info (self, sha) |
| def | stream (self, sha) |
| def | size (self) |
| def | sha_iter (self) |
Defines an interface for object database lookup. Objects are identified either by their 20 byte bin sha
| def __contains__ | ( | self, | |
| sha | |||
| ) |
| def has_object | ( | self, | |
| sha | |||
| ) |
:return: True if the object identified by the given 20 bytes
binary sha is contained in the database
Reimplemented in CompoundDB, LooseObjectDB, PackedDB, and MemoryDB.
| def info | ( | self, | |
| sha | |||
| ) |
:return: OInfo instance :param sha: bytes binary sha :raise BadObject:
Reimplemented in CompoundDB, LooseObjectDB, PackedDB, MemoryDB, and GitCmdObjectDB.
| def sha_iter | ( | self | ) |
Return iterator yielding 20 byte shas for all objects in this data base
Reimplemented in LooseObjectDB, CompoundDB, PackedDB, and MemoryDB.
| def size | ( | self | ) |
:return: amount of objects in this database
Reimplemented in LooseObjectDB, CompoundDB, PackedDB, and MemoryDB.
| def stream | ( | self, | |
| sha | |||
| ) |
:return: OStream instance :param sha: 20 bytes binary sha :raise BadObject:
Reimplemented in CompoundDB, LooseObjectDB, PackedDB, MemoryDB, and GitCmdObjectDB.