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

PostgresqlConnectionManager create connection from NpgsqlDatasource #12

Open
1 task done
scrocquesel-ml150 opened this issue Feb 23, 2024 · 0 comments
Open
1 task done
Labels
enhancement New feature or request

Comments

@scrocquesel-ml150
Copy link

Is there an existing issue for this?

  • I have searched the existing open and closed issues

Description

Npgsql allows to configure the connection settings by code. For example, provide the password at connection time with help of password provider or periodic password rotation on the NpgsqlDatasource.

PostgresqlConnectionManager should take a NpgsqlDatasource and create connection from it.

public PostgresqlConnectionManager(NpgsqlDataSource datasource)
    : base(new DelegateConnectionFactory(l => datasource.OpenConnection()))
{
}

What is the impact?

NpgsqlDatasource has been introduced in a more recent Npgsql version than the one currently used and it doesn't target netstandard1.3.

@scrocquesel-ml150 scrocquesel-ml150 added the enhancement New feature or request label Feb 23, 2024
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

1 participant