mirror of
https://github.com/claunia/marechai.git
synced 2025-12-16 19:14:25 +00:00
Check if database exists, if not try to create one, if not exit gracefully.
This commit is contained in:
@@ -38,14 +38,6 @@ namespace Cicm.Database
|
||||
{
|
||||
MySqlConnection connection;
|
||||
|
||||
public Mysql(string server, string user, string database, ushort port, string password)
|
||||
{
|
||||
string connectionString =
|
||||
$"server={server};user={user};database={database};port={port};password={password}";
|
||||
|
||||
connection = new MySqlConnection(connectionString);
|
||||
}
|
||||
|
||||
/// <summary>Database operations</summary>
|
||||
public Operations Operations { get; private set; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user