Browse Source
Merge pull request #9002 from can-guven/dev
postgresql connection string updated
pull/9021/head
maliming
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
2 deletions
-
framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/Commands/Services/ConnectionStringProvider.cs
|
|
|
@ -16,12 +16,12 @@ namespace Volo.Abp.Cli.Commands.Services |
|
|
|
case DatabaseManagementSystem.MySQL: |
|
|
|
return "Server=localhost;Port=3306;Database=MyProjectName;Uid=root;Pwd=myPassword;"; |
|
|
|
case DatabaseManagementSystem.PostgreSQL: |
|
|
|
return "Host=localhost;Port=5432;Database=MyProjectName;User ID=root;Password=myPassword;Pooling=true;MinimumPoolSize=0;MaximumPoolSize=100;Connection Lifetime=0;"; |
|
|
|
return "Host=localhost;Port=5432;Database=MyProjectName;User ID=root;Password=myPassword;"; |
|
|
|
case DatabaseManagementSystem.Oracle: |
|
|
|
case DatabaseManagementSystem.OracleDevart: |
|
|
|
return "Data Source=MyProjectName;Integrated Security=yes;"; |
|
|
|
case DatabaseManagementSystem.SQLite: |
|
|
|
return $"Data Source={Path.Combine(outputFolder , "MyProjectName.db")};".Replace("\\", "\\\\"); |
|
|
|
return $"Data Source={Path.Combine(outputFolder, "MyProjectName.db")};".Replace("\\", "\\\\"); |
|
|
|
default: |
|
|
|
return null; |
|
|
|
} |
|
|
|
|