Example #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)
Example #2
0
 def run(self, query):
     qm = QueryMessage()
     qm.query = query
     try:
         self.queryClient.runSimple(qm)
     except TQueryError as qe:
         raise Exception(qe.message)
Example #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)
Example #4
0
 def run(self, query):
     qm = QueryMessage()
     qm.query = query
     try:
         self.queryClient.runSimple(qm)
     except TQueryError as qe:
         raise Exception(qe.message)
Example #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)
Example #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)