swh.storage.cassandra.converters module

swh.storage.cassandra.converters.revision_to_db(revision: swh.model.model.Revision) → Dict[str, Any][source]
swh.storage.cassandra.converters.revision_from_db(db_revision: tuple, parents: Tuple[bytes])swh.model.model.Revision[source]
swh.storage.cassandra.converters.release_to_db(release: swh.model.model.Release) → Dict[str, Any][source]
swh.storage.cassandra.converters.release_from_db(db_release: tuple)swh.model.model.Release[source]
swh.storage.cassandra.converters.row_to_content_hashes(row: tuple) → Dict[str, bytes][source]

Convert cassandra row to a content hashes

swh.storage.cassandra.converters.row_to_visit_status(row: cassandra.cluster.ResultSet)swh.model.model.OriginVisitStatus[source]

Format a row representing a visit_status to an actual dict representing an OriginVisitStatus.