HomeSoftware Heritage

Postgres storage: introduce a db() context manager

Description

Postgres storage: introduce a db() context manager

This helper avoids us repeating the get_db/put_db pattern all the time.

Details

Provenance
olasdAuthored on Oct 2 2019, 5:04 PM
vlorentzPushed on Oct 30 2019, 5:21 PM
Differential Revision
D2066: Postgres storage: introduce a db() context manager
Parents
rDSTOCe8c01a257293: Replace all 'inmemory' journal writers with 'memory'
Branches
Unknown
Tags
Unknown