squeal 0.1.1

A SQL query builder library for Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use crate::Sql;

/// DropTable is used to specify a drop table query.
pub struct DropTable<'a> {
    /// The name of the table to drop
    pub table: &'a str,
}

impl<'a> Sql for DropTable<'a> {
    fn sql(&self) -> String {
        let result = format!("DROP TABLE {}", self.table);
        result
    }
}