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