コード例 #1
0
 def discard(self, n=-1, qid=-1, **handlers):
     # Just ignore n and qid, it is not supported in the Bolt 3 Protocol.
     log.debug("[#%04X]  C: DISCARD_ALL", self.local_port)
     self._append(b"\x2F", (), Response(self, **handlers))
コード例 #2
0
ファイル: _bolt4.py プロジェクト: uliana-dzyoba/DB
 def discard(self, n=-1, qid=-1, **handlers):
     extra = {"n": n}
     if qid != -1:
         extra["qid"] = qid
     log.debug("[#%04X]  C: DISCARD %r", self.local_port, extra)
     self._append(b"\x2F", (extra, ), Response(self, **handlers))
コード例 #3
0
ファイル: _bolt4.py プロジェクト: uliana-dzyoba/DB
 def rollback(self, **handlers):
     log.debug("[#%04X]  C: ROLLBACK", self.local_port)
     self._append(b"\x13", (), Response(self, **handlers))
コード例 #4
0
 def pull(self, n=-1, qid=-1, **handlers):
     # Just ignore n and qid, it is not supported in the Bolt 3 Protocol.
     log.debug("[#%04X]  C: PULL_ALL", self.local_port)
     self._append(b"\x3F", (), Response(self, **handlers))
     self._is_reset = False