arel 0.0.5

simulate rails arel
Documentation
#[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());
    }
}