Package FlightReportManager :: Module DataStoreController :: Class DataStoreController
[hide private]
[frames] | no frames]

Class DataStoreController

source code

Handle the sqlite DataBase

Instance Methods [hide private]
 
__init__(self, sqlitedatafile)
open sqlite db file
source code
 
connectToDB(self)
Open sqlite datafile for CRUD operations
source code
 
commitCloseDB(self)
Commit and close DB file
source code
 
createTable(self)
Create tables, only called when DB is not existing yet
source code
 
insertIntoTable(self, event_name, data_as_string)
Insert new data into table (when importing only)
source code
 
updatRowNameInTable(self, flightid, new_name)
Update name of flight in table
source code
 
deleteRowFromTable(self, flightid)
Delete selected row from table
source code
 
updateRowCityInTable(self, flightid, newCity)
Update city
source code
 
readDataFromTable(self)
Read whole data from table --> aim: display in GUI
source code
 
getRowFromID(self, flightid)
Returns the row by a given flight id
source code