PostgresConnString.NET 1.0.0

Install-Package PostgresConnString.NET -Version 1.0.0
dotnet add package PostgresConnString.NET --version 1.0.0
<PackageReference Include="PostgresConnString.NET" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add PostgresConnString.NET --version 1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: PostgresConnString.NET, 1.0.0"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install PostgresConnString.NET as a Cake Addin
#addin nuget:?package=PostgresConnString.NET&version=1.0.0

// Install PostgresConnString.NET as a Cake Tool
#tool nuget:?package=PostgresConnString.NET&version=1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

PostgresConnString.NET

Build status codecov License: MIT NuGet Badge

This library aims to give as accurate an estimate of the read time for an article in HTML or Markdown.

Installation

You can install the package from nuget

Install-Package PostgresConnString.NET

or

dotnet add package PostgresConnString.NET

or for paket

paket add PostgresConnString.NET

Usage

Parsing Urls

To parse a url

using PostgresConnString.NET;
...
var details = ConnectionDetails.Parse("postgres://someuser:somepassword@somehost:381/somedatabase");

The resulting details contains a subset of the following properties:

  • Host - Postgres server hostname
  • Port - port on which to connect
  • User - User with which to authenticate to the server
  • Password - Corresponding password
  • Database - Database name within the server

Exports

Currently, this library allows for generating an NPGSQL compatible connection string.

using PostgresConnString.NET;
...
var details = ConnectionDetails.Parse("postgres://someuser:somepassword@somehost:381/somedatabase");
var connString = details.ToNpgsqlSConnectionString(); //User ID=someuser;Password=somepassword;Server=somehost;Port=381;Database=somedatabase;Pooling=true;SSL Mode=Prefer;Trust Server Certificate=true

Contributing

Feel free to make requests and to open P=pull requests with fixes and updates.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.0 526 7/27/2020