Synopsis简介
dropDatabaseA删除数据库时会发生dropDatabaseevent occurs when a database is dropped.dropDatabase事件。
Description描述
_id |
| |
clusterTime | Timestamp |
|
lsid |
| |
ns |
| |
ns.db |
| |
operationType |
| |
txnNumber | NumberLong |
|
wallTime | ISODate |
|
Example示例
The following example illustrates a 以下示例说明了dropDatabase event:dropDatabase事件:
{
"_id": { <Resume Token> },
"operationType": "dropDatabase",
"clusterTime": <Timestamp>,
"wallTime": <ISODate>,
"ns": {
"db": "engineering"
}
}
A dropDatabase command generates a drop event for each collection in the database before generating a dropDatabase event for the database.dropDatabase命令在为数据库生成dropDatabase事件之前,为数据库中的每个集合生成一个drop事件。
A dropDatabase event leads to an invalidate event for change streams opened against its own ns.db database.dropDatabase事件会导致针对其自己的ns.db数据库打开的更改流的invalidate事件。