Ejemplo n.º 1
0
        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);
            }
        }
Ejemplo n.º 2
0
        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);
        }