Update links to C docs

pull/23/head
Thijs Cadier 8 years ago
parent b49a127eaf
commit 87effd5dc2

@ -36,7 +36,7 @@ impl Bsonc {
// Inner will be null if there was an error converting the data. // Inner will be null if there was an error converting the data.
// We're assuming the bson crate works and therefore assert here. // We're assuming the bson crate works and therefore assert here.
// See: http://api.mongodb.org/libbson/current/bson_new_from_data.html // See: http://mongoc.org/libbson/current/bson_new_from_data.html
assert!(!inner.is_null()); assert!(!inner.is_null());
Ok(Bsonc{ inner: inner }) Ok(Bsonc{ inner: inner })
@ -46,7 +46,7 @@ impl Bsonc {
assert!(!self.inner.is_null()); assert!(!self.inner.is_null());
// This pointer should not be modified or freed // This pointer should not be modified or freed
// See: http://api.mongodb.org/libbson/current/bson_get_data.html // See: http://mongoc.org/libbson/current/bson_get_data.html
let data_ptr = unsafe { bindings::bson_get_data(self.inner) }; let data_ptr = unsafe { bindings::bson_get_data(self.inner) };
assert!(!data_ptr.is_null()); assert!(!data_ptr.is_null());

@ -29,7 +29,7 @@ pub trait FlagsValue {
} }
/// Flags for insert operations /// Flags for insert operations
/// See: http://api.mongodb.org/c/current/mongoc_insert_flags_t.html /// See: http://mongoc.org/libmongoc/current/mongoc_insert_flags_t.html
#[derive(Eq,PartialEq,Ord,PartialOrd)] #[derive(Eq,PartialEq,Ord,PartialOrd)]
pub enum InsertFlag { pub enum InsertFlag {
ContinueOnError, ContinueOnError,
@ -52,7 +52,7 @@ impl FlagsValue for Flags<InsertFlag> {
} }
/// Flags for query operations /// Flags for query operations
/// See: http://api.mongodb.org/c/current/mongoc_query_flags_t.html /// See: http://mongoc.org/libmongoc/current/mongoc_query_flags_t.html
#[derive(Eq,PartialEq,Ord,PartialOrd)] #[derive(Eq,PartialEq,Ord,PartialOrd)]
pub enum QueryFlag { pub enum QueryFlag {
TailableCursor, TailableCursor,
@ -85,7 +85,7 @@ impl FlagsValue for Flags<QueryFlag> {
} }
/// Flags for deletion operations /// Flags for deletion operations
/// See: http://api.mongodb.org/c/1.1.8/mongoc_remove_flags_t.html /// See: http://mongoc.org/libmongoc/current/mongoc_remove_flags_t.html
#[derive(Eq,PartialEq,Ord,PartialOrd)] #[derive(Eq,PartialEq,Ord,PartialOrd)]
pub enum RemoveFlag { pub enum RemoveFlag {
SingleRemove SingleRemove
@ -102,7 +102,7 @@ impl FlagsValue for Flags<RemoveFlag> {
} }
/// Flags for update operations /// Flags for update operations
/// See: http://api.mongodb.org/c/current/mongoc_update_flags_t.html /// See: http://mongoc.org/libmongoc/current/mongoc_update_flags_t.html
#[derive(Eq,PartialEq,Ord,PartialOrd)] #[derive(Eq,PartialEq,Ord,PartialOrd)]
pub enum UpdateFlag { pub enum UpdateFlag {
Upsert, Upsert,

@ -2,7 +2,7 @@
//! //!
//! It aims to provide a safe and ergonomic Rust interface which handles all the gnarly usage details of //! It aims to provide a safe and ergonomic Rust interface which handles all the gnarly usage details of
//! the C driver for you. We use Rust's type system to make sure that we can only use the //! the C driver for you. We use Rust's type system to make sure that we can only use the
//! underlying C driver in the recommended way specified in it's [documentation](http://api.mongodb.org/c/current/). //! underlying C driver in the recommended way specified in it's [documentation](http://mongoc.org/libmongoc/current/).
//! //!
//! To get started create a client pool wrapped in an `Arc` so we can share it between threads. Then pop a client from it //! To get started create a client pool wrapped in an `Arc` so we can share it between threads. Then pop a client from it
//! you can use to perform operations. //! you can use to perform operations.

@ -32,7 +32,7 @@ fn test_cursor() {
#[test] #[test]
fn test_tailing_cursor() { fn test_tailing_cursor() {
// See: http://api.mongodb.org/c/1.1.8/cursors.html#tailable // See: http://mongoc.org/libmongoc/current/cursors.html#tailable
let uri = Uri::new("mongodb://localhost:27017/").unwrap(); let uri = Uri::new("mongodb://localhost:27017/").unwrap();
let pool = Arc::new(ClientPool::new(uri, None)); let pool = Arc::new(ClientPool::new(uri, None));

Loading…
Cancel
Save