public function primaryIndex($name = null, $ignoreIfExist = false, $defer = false)
    {
        $this->connection->openBucket($this->getTable())
            ->manager()->createN1qlPrimaryIndex(
                $this->detectIndexName($name),
                $ignoreIfExist,
                $defer
            );
    }