def create_tables () : tables = ["installations.csv", "equipements.csv", "activites.csv"] #get CSV files for table in tables : list = CSV_read(table) list_attribute = DB.get_list_attribute(table) #link with tables attributes lists name = DB.remove_dot_CSV(table) #removing .csv DAO.create_table(name, list, list_attribute)
def create_table (table) : list = CSV_read(table) list_attribute = DB.get_list_attribute(table) #link with table attributes list name = DB.remove_dot_CSV(table) #removing .csv DAO.create_table(name, list, list_attribute)