harp_apps.storage.services.blob_storages.sql¶
- class SqlBlobStorage[source]¶
Bases:
IBlobStorage
- async delete(blob_id)[source]¶
Delete a blob from the database.
- Parameters:
blob_id – sha1 hash of the blob
- async get(blob_id)[source]¶
Retrieve a blob from the database, using its hash. Returns None if not found.
- Parameters:
blob_id – sha1 hash of the blob
- Returns:
Blob or None