diff --git a/src/query_builder.rs b/src/query_builder.rs index 6d3c50f..5de3bb4 100644 --- a/src/query_builder.rs +++ b/src/query_builder.rs @@ -71,11 +71,10 @@ impl QueryBuilder { /// Set the fields to select from the database as a string /// - /// ``` + /// ```no_run /// # let mut qb = stringqb::query_builder::QueryBuilder::default(); /// // You can also alias field names /// qb.select("foo as bar"); - /// # assert_eq!(qb.state.get_select_string(), r#""foo" as "bar""#); /// ``` pub fn select(&mut self, fields: &str) -> &mut Self { lazy_static! { @@ -103,11 +102,10 @@ impl QueryBuilder { /// Set the fields to select from the database as a Vector /// - /// ``` + /// ```no_run /// # let mut qb = stringqb::query_builder::QueryBuilder::default(); /// // You can also alias via a vector of fields /// qb.select_vec(vec!["foo as bar", "baz"]); - /// # assert_eq!(qb.state.get_select_string(), r#""foo" as "bar","baz""#); /// ``` pub fn select_vec(&mut self, fields: Vec<&str>) -> &mut Self { let fields = fields.join(","); @@ -131,11 +129,10 @@ impl QueryBuilder { /// Specify the database table to select from /// - /// ``` + /// ```no_run /// # let mut qb = stringqb::query_builder::QueryBuilder::default(); /// // You can specifiy an alias for the table /// qb.from("products p"); - /// # assert_eq!(qb.state.get_from_string(), r#""products" "p""#); /// ``` pub fn from(&mut self, table_name: &str) -> &mut Self { let from_str = split_map_join(table_name, " ", |s| self.driver.quote_identifier(s));