예제 #1
0
def partialsync():

    global time_now

    #Running Partial Sync
    Insert(azure_client, time_now)

    #updating time of sync to compare to bucket data
    time_now = datetime.now()
    return 'Partial Sync Done'
예제 #2
0
 def selBtnEvent(self):
     for widget in self.workFrm.winfo_children():
         widget.destroy()
     if self.selV.get() == 1:
         Merge(self)
     if self.selV.get() == 2:
         Split(self)
     if self.selV.get() == 3:
         Insert(self)
     if self.selV.get() == 4:
         Delete(self)
예제 #3
0
def fullsync():
    #cleaning up the graph
    callback = azure_client.submitAsync("g.V().drop()")
    if callback.result() is not None:
        print("Cleaned up the graph!")

    #Running full sync
    Insert(azure_client)

    #saving time of full sync to compare to bucket data
    global time_now
    time_now = datetime.now()
    return "Full Sync Done and a Partial Sync will occur in 24 hours"
예제 #4
0
 def __init__(self, path_to_database: str):
     self.db_get = Position(path_to_database)
     self.db_insert = Insert(path_to_database, None)
예제 #5
0
 def partial_sync(self):
     Insert(self.azure_client, self.time)
     self.time = datetime.now()
예제 #6
0
 def full_sync(self):
     cleanup_graph(self.azure_client)
     Insert(self.azure_client)
     self.time = datetime.now()