Merge upstream to 1.6.9a

This commit is contained in:
Sachin 2024-11-24 12:59:54 +05:30
commit a84ebee1db
17 changed files with 188 additions and 45 deletions

View file

@ -41,16 +41,18 @@ public class Database(string dbConnectionString)
migrator.ExecuteMigrations();
}
public bool CheckDatabaseConnection()
public bool CheckDatabaseConnection(out string? exception)
{
using var connection = GetConnection();
exception = null;
try
{
return connection.Ping();
}
catch
catch (Exception ex)
{
exception = ex.Message;
return false;
}
}