sqlgen 0.1.6

A library to generate SQL Statements.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use crate::prelude::*;

#[cfg_attr(feature = "serde", derive(Deserialize, Serialize))]
#[derive(Debug)]
pub enum Param {
    Param(String),
}

impl Sql for Param {
    fn sql(&self, mut s: String, _ctx: &Context) -> Result<String> {
        match self {
            Param::Param(value) => s.push_str(value),
        }

        Ok(s)
    }
}