예제 #1
0
 public function createTable($databaseID, $quorumID, $name)
 {
     $status = scaliendb_client::SDBP_CreateTable($this->cptr, $databaseID, $quorumID, $name);
     $this->result = new Result(scaliendb_client::SDBP_GetResult($this->cptr));
     $this->_checkStatus($status);
     return $this->result->getNumber();
 }
예제 #2
0
 public function createTable($databaseID, $quorumID, $name)
 {
     $status = scaliendb_client::SDBP_CreateTable($this->cptr, $databaseID, $quorumID, $name);
     $this->result = new Result(scaliendb_client::SDBP_GetResult($this->cptr));
     if ($status != SDBP_SUCCESS) {
         return FALSE;
     }
     return $this->result->getNumber();
 }