コード例 #1
0
ファイル: Batch.php プロジェクト: jippi/php-cassandra
 /**
  * Exec transaction
  */
 public function getBody()
 {
     $body = pack('C', $this->_batchType);
     $body .= pack('n', count($this->_queryArray)) . implode('', $this->_queryArray);
     $body .= Request::queryParameters($this->_consistency, [], $this->_options);
     return $body;
 }
コード例 #2
0
ファイル: Query.php プロジェクト: zhgit/php-cassandra
 public function getBody()
 {
     $body = pack('N', strlen($this->_cql)) . $this->_cql;
     $body .= Request::queryParameters($this->_consistency, $this->_values, $this->_options);
     return $body;
 }