@@ -13,6 +13,7 @@ public static class ConnectionProfileUtilities
1313 {
1414 "oracle" => 1521 ,
1515 "mysql" => 3306 ,
16+ "mariadb" => 3306 ,
1617 "sqlserver" => 1433 ,
1718 "postgresql" => 5432 ,
1819 "kingbasees" => 54321 ,
@@ -28,6 +29,7 @@ public static IReadOnlyList<string> GetAuthenticationModeOptions(string? provide
2829 {
2930 "oracle" => new [ ] { "Default" , "SYSDBA" , "SYSOPER" } ,
3031 "sqlserver" => new [ ] { "Default" , "IntegratedSecurity" } ,
32+ "sqlite" => Array . Empty < string > ( ) ,
3133 _ => new [ ] { "Default" }
3234 } ;
3335 }
@@ -124,6 +126,11 @@ public static void CopyValues(ConnectionProfile target, ConnectionProfile source
124126
125127 public static string BuildIdentityEndpoint ( ConnectionProfile profile )
126128 {
129+ if ( string . Equals ( profile . ProviderName , "SQLite" , StringComparison . OrdinalIgnoreCase ) )
130+ {
131+ return profile . Database ?? string . Empty ;
132+ }
133+
127134 if ( string . Equals ( profile . ProviderName , "Oracle" , StringComparison . OrdinalIgnoreCase ) )
128135 {
129136 if ( string . Equals ( profile . OracleConnectionMode , "Tns" , StringComparison . OrdinalIgnoreCase ) )
@@ -245,6 +252,18 @@ public static void ApplyProviderSelection(ConnectionProfile profile, DatabasePro
245252 profile . Port = GetDefaultPort ( provider . Name ) ?? 0 ;
246253 }
247254
255+ if ( string . Equals ( provider . Name , "SQLite" , StringComparison . OrdinalIgnoreCase ) )
256+ {
257+ profile . Port = 0 ;
258+ profile . AuthenticationMode = string . Empty ;
259+ profile . Server = string . Empty ;
260+ profile . UserName = string . Empty ;
261+ profile . Password = string . Empty ;
262+ profile . EncryptedPassword = string . Empty ;
263+ profile . SavePassword = false ;
264+ return ;
265+ }
266+
248267 if ( string . IsNullOrWhiteSpace ( profile . AuthenticationMode ) )
249268 {
250269 profile . AuthenticationMode = "Default" ;
0 commit comments