PostgreSQL connection string builder (Npgsql)

The string uses NpgsqlConnectionStringBuilder's keywords and quoting.

Checked with Npgsql's NpgsqlConnectionStringBuilder (10.0.3.0): it reads every string this page makes back to the same keywords and values. Your password stays in your browser.

Using SQL Server? See the SQL Server connection string builder.

Questions

Server, User ID, db: do the synonyms work?

Yes. NpgsqlConnectionStringBuilder reads Server as Host, User ID as Username and db as Database, and writes them back as Host, Username and Database.

Can I list several hosts?

Yes, comma-separated in Host (for example h1,h2); the builder keeps it as written.

When is a value put in quotes?

When it contains a semicolon, an equals sign, a quote or a space, following the same rule as the .NET connection string builders.

More tools

Runs in your browser: nothing you paste is sent anywhere. Not affiliated with Microsoft, the .NET Foundation or the library authors.