コード例 #1
0
ファイル: db.py プロジェクト: SimylinK/Tech-Prod-log
 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)
コード例 #2
0
ファイル: db.py プロジェクト: SimylinK/Tech-Prod-log
 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)