Commit Graph

65 Commits (ef095d04646c5c5d70a3ee02133154b6ee085dd2)

Author SHA1 Message Date
Thijs Cadier 13273b7755 Support for aggregations
Thijs Cadier 816b6a1283 Add docs for error types
Thijs Cadier e887113b63 Document read pref options
Thijs Cadier 282add350a Change write concern new to default and document it
Thijs Cadier b6da5c9e43 Documentation for read prefs
Thijs Cadier bdf4b6fad8 Docs for cursor
Thijs Cadier dd4b3b7f4f Documentation for Database
Thijs Cadier 58a45bd49d Move Uri to client module
Thijs Cadier 646da592a7 Documentation for flags
Thijs Cadier 3c56489dca Documentation for collection
Thijs Cadier 4b86f8f1f3 Tweak lib doc
Thijs Cadier 15464cddd8 Fix typo in docs
Thijs Cadier 13e0d1662f Move bulk operation to collection and add docs
Thijs Cadier 283a94ce18 Document for client module
Thijs Cadier 981dd021c9 Documentation tweaks for client
Thijs Cadier 02c62c1f9b Docs for bulk operation
Thijs Cadier 0c4428611b Top level documentation and example
Thijs Cadier eac8a0aff6 Use mem::zeroed instead of mem::uninitialized
Thijs Cadier 3cdd312cdf Convert bson json to String directly
Thijs Cadier fcabf5e262 Tweak comments
Thijs Cadier 44bdec78be Replace deprecrated way of going from PathBuf to CString
Thijs Cadier 269d26feb9 Use durations instead of ms for sleeps
Thijs Cadier bae6556fed Updates for newest nightly and bindgen
Thijs Cadier e02ff4d627 Remove cstr_to_str feature marker
Thijs Cadier 5aa1b62faf Use an Arc to share ClientPool between threads
Thijs Cadier 8b3a94a6e8 Add collection update
Thijs Cadier 7140cdd443 Methods to take ownership of a database and collection
Thijs Cadier 6be7ce71f5 Implement partialeq for uri and add get_uri on pool
Thijs Cadier 87e4f3cb8b Fix lifetime issue in options
Thijs Cadier c2338a389f Fix passing of update in find_and_modify
Thijs Cadier e922adcad6 Add find_and_modify on collection
Thijs Cadier 418225ea25 Remove from_json method in bsonc we don't use
Thijs Cadier 98bb376969 Tests and a fix for ssl connections
Setting ssl options was broken because the memory for its content
was released immediately. We now keep ownership of everything until
the pool is dropped.
Thijs Cadier 96a051ef74 Whitespace
Thijs Cadier 74c38fe32a Show code and domain in bsonc error debug output
Thijs Cadier 72cb5be78f Add command_simple
Thijs Cadier eb1888b00c Add log handling
Thijs Cadier e4b9864bfc Rename wrapper package and use openssl-sys crate
Thijs Cadier d6e9d823aa Add CommandAndFindOptions with_fields convenience method
Thijs Cadier d8669a4226 Use insert_bson in cursor
Thijs Cadier ddd01a78e4 Allow mixed usage of strings and slices in get_collection
Thijs Cadier 0b61492889 Add ValueAccessError to MongoError
Thijs Cadier c5dce56e0d Add get_database on uri
Thijs Cadier 6d5c6ec18d Uri new now returns an option
Thijs Cadier c77cc42024 Attach fields bson to lifetime of cursor
Thijs Cadier fc71370c0f Move integration tests to own dir
Thijs Cadier b2d927c137 bsonc and error don't need to be public
Thijs Cadier 728c628340 Check for existense of paths for ssl options
fixes 
Thijs Cadier 1830144125 Replace all bson document handling with macro
Thijs Cadier 2cd8d988db Use uninitialized memory for client padding