HomeSoftware Heritage

Postgres storage: introduce a db() context manager

Authored by olasd on Oct 2 2019, 5:04 PM.

Description

Postgres storage: introduce a db() context manager

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

Details

Committed
olasdOct 2 2019, 5:13 PM
Pushed
vlorentzOct 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