Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide fn PgConnectOptions::get_host(&self) #2747

Closed
lcmgh opened this issue Sep 11, 2023 · 1 comment
Closed

Provide fn PgConnectOptions::get_host(&self) #2747

lcmgh opened this issue Sep 11, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@lcmgh
Copy link

lcmgh commented Sep 11, 2023

Hi!

Similar to

pub fn get_database(&self) -> Option<&str> {

pub fn get_database(&self) -> Option<&str> {
    self.database.as_deref()
}

I'd like to see pub fn get_host(&self) -> Option<&str> to let my health checker construct a meaningful string for the database connection.

@lcmgh lcmgh added the enhancement New feature or request label Sep 11, 2023
@abonander
Copy link
Collaborator

Closed by #2752

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants