-
Notifications
You must be signed in to change notification settings - Fork 6
/
CreateSQLTable.py
37 lines (22 loc) · 1.2 KB
/
CreateSQLTable.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
import DataUpdate
import sqlite3
connection=sqlite3.connect("output/MasterDataBase.db")
cursor=connection.cursor()
IMFExp=DataUpdate.IMFGFSExpenditureData()
IMFExp.to_sql(name="IMFExpenditure", con=connection, if_exists="replace", index=False)
Aquastat=DataUpdate.AQUASTATData()
Aquastat.to_sql(name="AQUASTAT", con=connection, if_exists="replace", index=False)
FAO=DataUpdate.FAOFBS()
FAO.to_sql(name="FAOFoodBalanceSheetAggregated", con=connection, if_exists="replace", index=False)
WDI=DataUpdate.WDIData()
WDI.to_sql(name="WorldDevelopmentIndicators",con=connection,if_exists="replace",index=False)
UIS=DataUpdate.UISData()
UIS.to_sql(name="UISEducationData",con=connection,if_exists="replace",index=False)
IMF=DataUpdate.IMFGFSRevenueData()
IMF.to_sql(name="IMFRevenue", con=connection, if_exists="replace", index=False)
HealthDet=DataUpdate.IHMEDetailedDeathsData()
HealthDet.to_sql(name="HealthDataDetailed",con=connection,if_exists="replace",index=False)
Health=DataUpdate.IHMEHistoricalDeathData(sex_name="Both")
Health.to_sql(name="HealthData",con=connection,if_exists="replace",index=False)
Fish=DataUpdate.FAOFBSFish()
Fish.to_sql(name="FAOFishData", con=connection, if_exists="replace", index=False)