pub struct Delete { /* private fields */ }
Expand description
Represents a ´DELETE´ clause builder for SQL queries
Implementations§
Source§impl Delete
impl Delete
Sourcepub fn new(table: &str) -> Self
pub fn new(table: &str) -> Self
Creates a new Delete
instance with the given table name.
§Example
use lumus_sql_builder::sqlite::Delete;
let delete = Delete::new("users_tb").build();
assert_eq!("DELETE FROM users_tb;", delete.unwrap());
pub fn build(&self) -> Result<String, SqlBuilderError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Delete
impl RefUnwindSafe for Delete
impl Send for Delete
impl Sync for Delete
impl Unpin for Delete
impl UnwindSafe for Delete
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more