示例#1
0
        public void UpdateAllFromS3()
        {
            downloadLatestFile();
            archiveLatestFile();

            CSVData dl = new CSVData();

            mcl.Films films = dl.GetCsvData();
            SQLData   dl2   = new SQLData();

            dl2.UpdateDBFromS3(films);
        }
示例#2
0
        //--------------------------------------------------------------------- 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
        }
示例#3
0
 public void UpdateFilmInDatabase(List <string> inputData)
 {
     dl.SQLData dl = new dl.SQLData();
     dl.UpdateCreateFilm(inputData);
 }