pub struct SqlBuilder {
pub statement_base: SqlStatementBase,
pub table_name: String,
pub where_params: BTreeMap<String, Arc<dyn ToSql + Sync>>,
pub order: Option<(String, OrderingDirection)>,
pub limit: Option<u32>,
pub pagination: Option<PaginationData>,
}Fields§
§statement_base: SqlStatementBase§table_name: String§where_params: BTreeMap<String, Arc<dyn ToSql + Sync>>§order: Option<(String, OrderingDirection)>§limit: Option<u32>§pagination: Option<PaginationData>Implementations§
Source§impl SqlBuilder
impl SqlBuilder
pub fn build(&self) -> (String, Vec<Arc<dyn ToSql + Sync>>)
pub fn with_pagination(self, pagination: PaginationData) -> Self
Auto Trait Implementations§
impl Freeze for SqlBuilder
impl !RefUnwindSafe for SqlBuilder
impl !Send for SqlBuilder
impl !Sync for SqlBuilder
impl Unpin for SqlBuilder
impl !UnwindSafe for SqlBuilder
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