本页内容
MongoDB\Model\IndexInfo::getNamespace()
返回索引命名空间,即包含索引的集合的命名空间。
function getNamespace(): string
索引命名空间。
<?php$info = new IndexInfo([ 'ns' => 'foo.bar',]);echo $info->getNamespace();
输出将类似于
foo.bar
MongoDB Collection::createIndex()
MongoDB Collection::getNamespace()
listIndexes 命令参考,见 MongoDB 手册
返回
getName()
下一页
getVersion()