Rust

mongodb

Module

The MongoDB OP_MSG classifier.

Contents

use utopia_query::classifier::mongodb::MongoDb;
Rust
pub struct MongoDb

Classifies MongoDB OP_MSG (opcode 2013) messages by their command name, the first key of the body section's BSON document.

Reads (find, aggregate, count, ping, hello, ...) and writes (insert, update, delete, create, drop, ...) are looked up; commitTransaction / abortTransaction end a transaction, and a CRUD command carrying a top-level startTransaction key begins one. Anything else, or a malformed message, is unknown.