Skip to content
Snippets Groups Projects

Migrating to psycopg3

Merged Pierre-Yves David requested to merge marmoute/swh-provenance:psycopg3 into main

Similar to !198 (closed) with a few extra things

  • swapped the if branch around to be similar to what the storage do
  • directly using the existing connection in swh_db_version, it is more efficient and prevent dealing the complication as db.conn.info.dsn does not contains the password information and they would need to be re-injected.
  • add some typing information that help mypy to catch bug.
Edited by Pierre-Yves David

Merge request reports

Merge request pipeline #14307 skipped

Merge request pipeline skipped for 2ae14b96

Merged by vlorentzvlorentz 1 week ago (Mar 25, 2025 9:36am UTC)

Loading

Pipeline #14308 passed

Pipeline passed for 2ae14b96 on main

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
Please register or sign in to reply
Loading