Example #1
0
def initDBs():
    __initDB(ConfigHelper.getRollingDatabasePath())
    RollingDatabaseHelper.init()

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

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