AI エージェント向け: ドキュメントインデックスは https://www.mongodb.com/ja-jp/docs/llms.txt で利用できます。すべてのページの markdown バージョンは、いずれかの URL パスに .md を追加することで利用できます。
Docs Menu

buildInfo(データベースコマンド)

buildInfo

The buildInfo command returns a build summary for the current mongod.

このコマンドは、次の環境でホストされている配置で使用できます。

  • MongoDB Atlas はクラウドでの MongoDB 配置のための完全管理サービスです

注意

このコマンドは、すべての MongoDB Atlas クラスターでサポートされています。すべてのコマンドに対する Atlas のサポートについては、「サポートされていないコマンド」を参照してください。

  • MongoDB Enterprise: サブスクリプションベースの自己管理型 MongoDB バージョン

  • MongoDB Community: ソースが利用可能で、無料で使用できる自己管理型の MongoDB のバージョン

このコマンドの構文は、次のとおりです。

db.runCommand(
{
buildInfo: 1
}
)

In mongosh, call buildInfo in the following form:

db.runCommand( { buildInfo: 1 } )

The output document of buildInfo has the following form:

{
"version" : "<string>",
"gitVersion" : "<string>",
"sysInfo" : "<string>",
"loaderFlags" : "<string>",
"compilerFlags" : "<string>",
"allocator" : "<string>",
"versionArray" : [ <num>, <num>, <...> ],
"openssl" : <document>,
"javascriptEngine" : "<string>",
"bits" : <num>,
"debug" : <boolean>,
"maxBsonObjectSize" : <num>,
"storageEngines" : [ "<string>", "<string>", "<...>" ],
"ok" : <num>
}
buildInfo

The document returned by the buildInfo command.

これらのフィールドは 安定しており 、一貫した動作を提供する必要があります。

buildInfo.gitVersion

mongodのビルドに使用されるコードの状態を識別するコミット識別子。

buildInfo.versionArray

An array that conveys version information about the mongod instance. See version for a more readable version of this string.

buildInfo.version

A string that conveys version information about the mongod instance. If you need to present version information to a human, this field is preferable to versionArray.

この string は、リリースの場合、 <major>.<minor>.<patch>の形式を取りますが、開発ビルドには追加情報が含まれる場合があります。

buildInfo.storageEngines

サーバーで使用できる mongodストレージ エンジン の一覧。

buildInfo.javascriptEngine

mongodインスタンスで使用される JavaScript エンジンを報告する string。 デフォルトでは、これはmozjsです。

buildInfo.bits

mongodバイナリのターゲット プロセッサ アーキテクチャを反映する数値。

buildInfo.debug

ブール値。デバッグ オプションを使用して構築された場合は、 true

buildInfo.maxBsonObjectSize

最大 BSON ドキュメント サイズ を報告する数値。

buildInfo.openssl

mongodが構築され、現在使用している TLS/SSL ライブラリのバージョンを説明する埋め込みドキュメント。

buildInfo.modules

mongodが構築されたアドオン モジュールのリスト。 可能な値には現在、「enterprise」と「locksdb」が含まれています。

これらのフィールドは内部でのみ使用し、その動作や存在がどのレベルでも一貫性を保つことを期待しないでください。

buildInfo.allocator

mongodが使用するメモリア割り当て。 デフォルトでは、これはtcmallocです。

buildInfo.buildEnvironment

mongodビルド環境に関するさまざまなデバッグ情報を含む埋め込みドキュメント。

このページを評価