Skip to content

Accept connecting with PostgreSQL URLs instead of connection strings #2090

@luizs81

Description

@luizs81

Would be possible to accept the URI as a valid connection string?

postgresql://[user[:password]@][netloc][:port][,...][/dbname][?param1=value1&...]

This is how Heroku provides access to its databases, and due the fact the values can (will?) change without announcement, it becomes quite cumbersome to manage it to the current "key value" format.

If you guys think it's a good idea, I would be happy to submit a PR to enhance the NpgsqlConnectionStringBuilder class.

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions