public static String[] properties;
public static ConnectionDB connect(AdminBase.DATABASE db, String... args){
DbmsInterpreter.properties = args;
ConnectionDB conex = null;
switch (db) {
case MariaDB:
case MYSQL:
conex = new ConnectionDB(args);
conex.connectMySQL();
break;
case SQLSERVER:
conex = new ConnectionDB(args);
conex.connectSQLServer();
break;
case POSTGRES:
conex = new ConnectionDBPostgre(args);
conex.connectPostgres();
break;
case SQLite:
conex = new ConnectionDB("", "", args[0], "", "");
conex.connectSQLite();
break;
case FIREBIRD:
conex = new ConnectionDBFirebird(args);
conex.connectFirebird();
break;
}
return conex;
}