Skip to main content

Module mongodb

Module mongodb 

Source
Expand description

A single-node MongoDB container running as a one-member replica set (required for transactions/change streams). The Container::with_post_start hook initiates the replica set and waits for a primary to be elected before start() returns, so MongoDbGuard::connection_string is always usable immediately after start().

Structs§

MongoDbContainer
A single-node MongoDB container, started as a one-member replica set named docker-rs.
MongoDbGuard
The running guard for a MongoDbContainer.