Docs 菜单
Docs 主页
/ / /
PHP 库手册
/ / /

MongoDB\Model\IndexInfo::getVersion()

在此页面上

  • 定义
  • 返回值
  • 举例
  • 另请参阅
MongoDB\Model\IndexInfo::getVersion()

返回索引版本。

function getVersion(): integer

索引版本。

<?php
$info = new IndexInfo([
'v' => 1,
]);
var_dump($info->getVersion());

而输出将类似如下所示:

int(1)
  • MongoDB\Collection::createIndex()

  • MongoDB 手册中的listIndexes命令参考

后退

getNamespace()

来年

is2dSphere()