Skip to content

Conversation

V02460
Copy link
Contributor

@V02460 V02460 commented Aug 22, 2025

This PR works on the PgConnectOptions to implement the fallback to the username if no database name is given. It notably touches the passfile lookup and connection establishment.

The first commit is a bit broader refactor to use getter methods for fields where appropriate. This better distinguishes raw user-supplied values vs. their derived form.

Is this a breaking change?

Yes. The following changes in observable behavior are intended:

  • Passfile lookup defaulting to the username when not given a database name (breaking, did default to the empty string)
  • Always passing a database name when establishing a connection (breaking, did pass None on missing database)
  • Changed signature of get_database (breaking)
  • New public getter methods get_password and get_extra_float_digits (not breaking)

@V02460 V02460 force-pushed the pgoptions-default-db branch from 43e68a3 to 6f3c014 Compare August 22, 2025 14:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant