Expand description
Action builder types.
Modules§
Structs§
- Abort
Transaction - Abort the currently active transaction on a session. Construct with
ClientSession::abort_transaction. - Aggregate
- Run an aggregation operation. Construct with
Database::aggregateorCollection::aggregate. - Bulk
Write - Performs multiple write operations. Construct with
Client::bulk_write. - Commit
Transaction - Commits a currently-active transaction. Construct with
ClientSession::commit_transaction. - Count
Documents - Get an accurate count of documents. Construct with
Collection::count_documents. - Create
Collection - Creates a new collection. Construct with
Database::create_collection. - Create
Index - Perform creation of an index or indexes. Construct by calling
Collection::create_indexorCollection::create_indexes. - Create
Search Index - Create search indexes on a collection. Construct with
Collection::create_search_indexorCollection::create_search_indexes. - Delete
- Deletes documents matching a query. Construct with
Collection::delete_oneorCollection::delete_many. - Distinct
- Finds the distinct values of a field. Construct with
Collection::distinct. - Drop
Collection - Drops the collection, deleting all data and indexes stored in it. Construct with
Collection::drop. - Drop
Database - Drops the database, deleting all data, collections, and indexes stored in it. Construct with
Database::drop. - Drop
Index - Drop an index or indexes. Construct with
Collection::drop_indexorCollection::drop_indexes. - Drop
Search Index - Drops a specific search index. Construct with
Collection::drop_search_index. - Estimated
Document Count - Gather an estimated document count. Construct with
Collection::estimated_document_count. - Explicit
Session - Find
- Finds the documents in a collection matching a filter. Construct with
Collection::find. - FindOne
- Finds a single document in a collection matching a filter. Construct with
Collection::find_one. - Find
OneAnd Delete - Atomically finds up to one document in the collection matching a filter and deletes it.
Construct with
Collection::find_one_and_delete. - Find
OneAnd Replace - Atomically finds up to one document in the collection matching a filter and replaces it.
Construct with
Collection::find_one_and_replace. - Find
OneAnd Update - Atomically finds up to one document in the collection matching a filter and updates it.
Construct with
Collection::find_one_and_update. - Implicit
Session - Insert
Many - Inserts documents into a collection. Construct with
Collection::insert_many. - Insert
One - Inserts a document into a collection. Construct with
Collection::insert_one. - List
Collections - Gets information about each of the collections in the database. Create by
calling
Database::list_collectionsorDatabase::list_collection_names. - List
Databases - Gets information about each database present in the cluster the Client is connected to. Create
by calling
Client::list_databasesorClient::list_database_names. - List
Indexes - List indexes on a collection. Construct with
Collection::list_indexesorCollection::list_index_names. - List
Names - List
Search Indexes - Gets index information for one or more search indexes in a collection.
- List
Specifications - Multiple
- Parse
Connection String - Parses a MongoDB connection string into a
ClientOptionsstruct. Construct withClientOptions::parse. - Replace
One - Replace up to one document matching a query. Construct with
Collection::replace_one. - RunCommand
- Run a database-level command. Create with
Database::run_command. - RunCursor
Command - Runs a database-level command and returns a cursor to the response. Create with
Database::run_cursor_command. - Shutdown
- Shut down this
Client, terminating background thread workers and closing connections. Create by callingClient::shutdown. - Single
- Start
Session - Starts a new
ClientSession. Construct withClient::start_session. - Start
Transaction - Start a new transaction. Construct with
ClientSession::start_transaction. - Update
- Update documents matching a query. Construct with
Collection::update_manyorCollection::update_one. - Update
Search Index - Updates a specific search index to use a new definition. Construct with
Collection::update_search_index. - Warm
Connection Pool - Add connections to the connection pool up to
min_pool_size. Construct withClient::warm_connection_pool. - Watch
- Starts a new
ChangeStreamthat receives events for all changes in a given scope. Create by callingClient::watch,Database::watch, orCollection::watch.
Traits§
- Action
- A pending action to execute on the server. The action can be configured via chained methods and
executed via
await(orrunif using the sync client).