Esempio n. 1
0
def initDBs():
    __initDB(ConfigHelper.getRollingDatabasePath())
    RollingDatabaseHelper.init()

    __initDB(ConfigHelper.getBehaviorDatabasePath())
    BehaviorDatabaseHelper.init()

    #TODO init graph database
    #print "Databases initialized."
    return
Esempio n. 2
0
def connect():
    pathToDB = ConfigHelper.getRollingDatabasePath()
    connection = sqlite3.connect(pathToDB)
    return connection
Esempio n. 3
0
def deleteDBs():
    __deleteDB(ConfigHelper.getRollingDatabasePath())
    __deleteDB(ConfigHelper.getBehaviorDatabasePath())
    print "Databases deleted."