Struct tinybase::query_builder::QueryBuilder
source · pub struct QueryBuilder<T>where
T: TableType + 'static,{ /* private fields */ }Expand description
Builder for building and executing queries.
Implementations§
source§impl<T> QueryBuilder<T>where
T: TableType,
impl<T> QueryBuilder<T>where T: TableType,
sourcepub fn new(table: &Table<T>) -> Self
pub fn new(table: &Table<T>) -> Self
Creates a new query builder for the given table.
Arguments
table- The table to build the query for.
sourcepub fn with_condition<C: Into<QueryCondition<T>>>(self, condition: C) -> Self
pub fn with_condition<C: Into<QueryCondition<T>>>(self, condition: C) -> Self
Adds a query condition to the query builder. This will overwrite the previous condition (if set).
Arguments
condition- The condition to add to the query builder.
Auto Trait Implementations§
impl<T> !RefUnwindSafe for QueryBuilder<T>
impl<T> !Send for QueryBuilder<T>
impl<T> !Sync for QueryBuilder<T>
impl<T> Unpin for QueryBuilder<T>
impl<T> !UnwindSafe for QueryBuilder<T>
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