Commit Graph

12 Commits (82852b98ce32fc6f1266efb012ae95483867ebc4)

Author SHA1 Message Date
Thijs Cadier 82852b98ce Add Client get_server_status
Thijs Cadier 9d299055e7 Add asserts and whitespace fix
Thijs Cadier df9749c5c4 WIP Collection bulk operation
Thijs Cadier 9cbe2b03c3 Call init when creating first client pool
Thijs Cadier f9e4280836 Use std::sync::Once for init
Thijs Cadier e88e6892f9 Use bson from Git for now
Thijs Cadier b12196a41e Support for tailing queries
Add a tail convenience method that returns a tailing cursor
that implements the recommended way of tailing and reconnecting
in it's iterator implementation.

Also move optional arguments to separate type that can optionally be
added to the various methods.
Thijs Cadier c7a2b78016 Support for iterating tailing cursors
When there is no result after calling mongoc_cursor_next, but the cursor
is still alive we need to sleep and try again.
Thijs Cadier d2919f79a6 Fix warnings and don't use scoped anymore
Thijs Cadier f3bb18630f Add database wrapper with get and create collection
Thijs Cadier b1987b1e36 Add Collection.get_name()
Thijs Cadier d686ba240f Initial version