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
No Linters Available
Unit
No Unit Test Coverage
Build Status
Buildable 8085
Build 11657: tox-on-jenkinsJenkins
Build 11656: arc lint + arc unit