teo_sql_connector/stmts/drop/
mod.rs1use crate::stmts::drop::database::SQLDropDatabaseStatement;
2use crate::stmts::drop::index::SQLDropIndexStatement;
3use crate::stmts::drop::table::SQLDropTableStatement;
4
5pub mod database;
6pub mod table;
7pub mod index;
8
9pub(crate) struct SQLDropStatement { }
10
11impl SQLDropStatement {
12
13 pub(crate) fn database(&self, database: impl Into<String>) -> SQLDropDatabaseStatement {
14 SQLDropDatabaseStatement { database: database.into(), if_exists: false }
15 }
16
17 pub(crate) fn table(&self, table: impl Into<String>) -> SQLDropTableStatement {
18 SQLDropTableStatement { table: table.into(), if_exists: false }
19 }
20
21 pub(crate) fn index(&self, index: impl Into<String>) -> SQLDropIndexStatement {
22 SQLDropIndexStatement { index: index.into() }
23 }
24}