public void UpdateAllFromS3() { downloadLatestFile(); archiveLatestFile(); CSVData dl = new CSVData(); mcl.Films films = dl.GetCsvData(); SQLData dl2 = new SQLData(); dl2.UpdateDBFromS3(films); }
//--------------------------------------------------------------------- FILMS public mcl.Films GetFilms(int accessPoint) { switch (accessPoint) { case avSys.DataAccessPoint.CSV: dl.CSVData dl1 = new dl.CSVData(); return(dl1.GetCsvData()); case avSys.DataAccessPoint.MySQL: dl.SQLData dl2 = new dl.SQLData(); return(dl2.GetSQLData()); default: dl1 = new dl.CSVData(); return(dl1.GetCsvData()); } //-- TODO: raise error if needed }
public void UpdateFilmInDatabase(List <string> inputData) { dl.SQLData dl = new dl.SQLData(); dl.UpdateCreateFilm(inputData); }