generated from DbUp/dbup-provider-template
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into release/6.0.0
# Conflicts: # src/Tests/ApprovalFiles/NoPublicApiChanges.Run.Net.verified.cs
- Loading branch information
Showing
4 changed files
with
108 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
using System.Net.Security; | ||
using System.Security.Cryptography.X509Certificates; | ||
|
||
namespace DbUp.Postgresql | ||
{ | ||
/// <summary> | ||
/// Options that will be applied on the created connection | ||
/// </summary> | ||
public class PostgresqlConnectionOptions | ||
{ | ||
/// <summary> | ||
/// Certificate for securing connection. | ||
/// </summary> | ||
public X509Certificate2 ClientCertificate { get; set; } | ||
|
||
/// <summary> | ||
/// Custom handler to verify the remote SSL certificate. | ||
/// Ignored if Npgsql.NpgsqlConnectionStringBuilder.TrustServerCertificate is set. | ||
/// </summary> | ||
public RemoteCertificateValidationCallback UserCertificateValidationCallback { get; set; } | ||
|
||
/// <summary> | ||
/// The database to connect to initially. Default is 'postgres'. | ||
/// </summary> | ||
public string MasterDatabaseName { get; set; } = "postgres"; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters