code: public void handleReadyForQuery(TxStatus txStatus) {
      CommandResponse<R> resp;
      if (failure != null) {
        resp = CommandResponse.failure(this.failure, txStatus);
      } else {
        resp = CommandResponse.success(result, txStatus);
      }
      completionHandler.handle(resp);
    }
docs: <p>
  The frontend can issue commands. Every message returned from the backend has transaction status
  that would be one of the following
  <p>
  IDLE : Not in a transaction block
  <p>
  ACTIVE : In transaction block
  <p>
  FAILED : Failed transaction block (queries will be rejected until block is ended)