swh.provenance.backend.postgresql module#
- class swh.provenance.backend.postgresql.Db(conn: connection, pool: AbstractConnectionPool | None = None)[source]#
Bases:
BaseDb
PostgreSQL backend for the Software Heritage provenance index.
create a DB proxy
- Parameters:
conn – psycopg2 connection to the SWH DB
pool – psycopg2 pool of connections