Page MenuHomeSoftware Heritage

Postgres storage: introduce a db() context manager
ClosedPublic

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

Details

Summary

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

Depends on D2064 because CI is broken without it

Test Plan

no functional change

Diff Detail

Repository
rDSTO Storage manager
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.