pub struct QueryBuilder {
pub query: String,
pub table: String,
pub qtype: QueryType,
pub list: Vec<KeywordList>,
}Fields§
§query: String§table: String§qtype: QueryType§list: Vec<KeywordList>Implementations§
source§impl QueryBuilder
impl QueryBuilder
pub fn select(fields: Vec<&str>) -> Result<Self, Error>
pub fn delete() -> Result<Self, Error>
pub fn update() -> Result<Self, Error>
pub fn insert( columns: Vec<&str>, values: Vec<(&str, ValueType)>, ) -> Result<Self, Error>
pub fn table(&mut self, table: &str) -> Self
pub fn where_cond( &mut self, column: &str, mark: &str, value: (&str, ValueType), ) -> Self
pub fn or(&mut self, column: &str, mark: &str, value: (&str, ValueType)) -> Self
pub fn set(&mut self, column: &str, value: (&str, ValueType)) -> Self
pub fn and( &mut self, column: &str, mark: &str, value: (&str, ValueType), ) -> Self
pub fn offset(&mut self, offset: i32) -> Self
pub fn limit(&mut self, limit: i32) -> Self
pub fn like(&mut self, columns: Vec<&str>, operand: &str) -> Self
pub fn order_by(&mut self, column: &str, ordering: &str) -> Self
pub fn order_random(&mut self) -> Self
pub fn finish(&mut self) -> String
Trait Implementations§
source§impl Clone for QueryBuilder
impl Clone for QueryBuilder
source§fn clone(&self) -> QueryBuilder
fn clone(&self) -> QueryBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for QueryBuilder
impl RefUnwindSafe for QueryBuilder
impl Send for QueryBuilder
impl Sync for QueryBuilder
impl Unpin for QueryBuilder
impl UnwindSafe for QueryBuilder
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)