def initDBs(): __initDB(ConfigHelper.getRollingDatabasePath()) RollingDatabaseHelper.init() __initDB(ConfigHelper.getBehaviorDatabasePath()) BehaviorDatabaseHelper.init() #TODO init graph database #print "Databases initialized." return
def connect(): pathToDB = ConfigHelper.getBehaviorDatabasePath() connection = sqlite3.connect(pathToDB) return connection
def deleteDBs(): __deleteDB(ConfigHelper.getRollingDatabasePath()) __deleteDB(ConfigHelper.getBehaviorDatabasePath()) print "Databases deleted."