MongoPool

Wrapper over mongoc_client_pool_t that allows getting a client with lock(). After usage this should be freed with unlock(). Note that this.unlock isn't the reverse operation of this.lock. Clients should use their unlock().

Constructors

this
this(string connectionString)
Undocumented in source.

Members

Functions

lock
Client* lock()
Undocumented in source. Be warned that the author may not have intended to support it.
unlock
auto unlock()

Deallocates resources.

Variables

pool
mongoc_client_pool_t* pool;
Undocumented in source.
toDestroy
Appender!(Client*[]) toDestroy;

This is optional, allows cleaning when this.unlock() is called. But it keeps growing.

uri
mongoc_uri_t* uri;
Undocumented in source.

Meta