public void DeleteDatabase(string dbName, string connStringWithoutCatalog, DatabaseType dbType) { DatabaseHandler db1 = new DatabaseHandler(connStringWithoutCatalog, dbType); MySqlDeploy deploy = new MySqlDeploy(); if (deploy.CheckDatabaseExists(db1.Database, dbName)) { deploy.DeleteDatabase(db1.Database, dbName); } }
public void DeployDatabase(TestNodes mainTestNode, string connectionString, string dbName, string connStringWithoutCatalog, DatabaseType dbType, string pathToScript) { DatabaseHandler db = new DatabaseHandler(connectionString, dbType); DatabaseHandler db1 = new DatabaseHandler(connStringWithoutCatalog, dbType); MySqlDeploy deploy = new MySqlDeploy(); if (!deploy.CheckDatabaseExists(db1.Database, dbName)) { deploy.CreateDatabase(db1.Database, dbName); } deploy.DeployScript(pathToScript, mainTestNode, db); }