sql_query 0.0.0

composible sql query builder, with support of binding into query buffer
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
pub trait ReturningClause {
    fn returning(self) -> String;
}

impl ReturningClause for Vec<&'static str> {
    fn returning(self) -> String {
        format!(" RETURNING {};", self.join(", "))
    }
}

impl ReturningClause for () {
    fn returning(self) -> String {
        format!(";")
    }
}