예제 #1
0
 def runQuery(self, query, qid):
     qm = QueryMessage()
     qm.query = query
     try:
         self.queryClient.run(qm, "localhost", getCallbackPort(), qid)
     except TQueryError as qe:
         raise Exception(qe.message)
예제 #2
0
 def run(self, query):
     qm = QueryMessage()
     qm.query = query
     try:
         self.queryClient.runSimple(qm)
     except TQueryError as qe:
         raise Exception(qe.message)
예제 #3
0
 def runQuery(self, query, qid):
     qm = QueryMessage()
     qm.query = query
     try:
         self.queryClient.run(qm, "localhost", getCallbackPort(), qid)
     except TQueryError as qe:
         raise Exception(qe.message)
예제 #4
0
 def run(self, query):
     qm = QueryMessage()
     qm.query = query
     try:
         self.queryClient.runSimple(qm)
     except TQueryError as qe:
         raise Exception(qe.message)
예제 #5
0
 def getFirstTuple(self, query):
     qm = QueryMessage()
     qm.query = query
     try:
         ttuple = self.queryClient.getFirstTuple(qm)
     except TQueryError as qe:
         raise Exception(qe.message)
     return translate(ttuple)
예제 #6
0
 def getFirstTuple(self, query):
     qm = QueryMessage()
     qm.query = query
     try:
         ttuple = self.queryClient.getFirstTuple(qm)
     except TQueryError as qe:
         raise Exception(qe.message)
     return translate(ttuple)