vibe.d beta banner
get vibe.d
0.9.0

Asynchronous I/O that doesn’t get in your way, written in D

Class MongoConnection

[internal] Provides low-level mongodb protocol access.

class MongoConnection ;

It is not intended for direct usage. Please use vibe.db.mongo.db and vibe.db.mongo.collection modules for your code. Note that a MongoConnection may only be used from one fiber/thread at a time.

Constructors

NameDescription
this (server, port) Simplified constructor overload, with no m_settings
this (cfg)

Properties

NameTypeDescription
connected[get] bool
description[get] const(ServerDescription)

Methods

NameDescription
connect ()
delete_ (collection_name, flags, selector)
disconnect ()
getLastError (db)
getMore (collection_name, nret, cursor_id, on_msg, on_doc)
insert (collection_name, flags, documents)
killCursors (cursors)
listDatabases () Queries the server for all databases.
query (collection_name, flags, nskip, nret, query, returnFieldSelector, on_msg, on_doc)
update (collection_name, flags, selector, update)
Authors

Sönke Ludwig

Copyright

© 2012-2016 Sönke Ludwig

License

Subject to the terms of the MIT license, as written in the included LICENSE.txt file.