1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
#[derive(Clone, Debug)] pub struct SqlLiteral { pub raw_sql: String } impl SqlLiteral { pub fn new(raw_sql: String) -> Self { Self { raw_sql: raw_sql, } } } // #[cfg(test)] // mod tests { // use super::*; // #[test] // fn it_works() { // let sql_literal = SqlLiteral::new("length(title)".to_string()); // assert_eq!(sql_literal.raw_sql, "length(title)".to_string()); // } // }