pub struct SeparatedSql { /* private fields */ }Expand description
A helper for building SQL with separators between items.
Implementations§
Source§impl SeparatedSql
impl SeparatedSql
Sourcepub fn push_bind(
self,
sql: impl Into<String>,
value: impl Into<FilterValue>,
) -> Self
pub fn push_bind( self, sql: impl Into<String>, value: impl Into<FilterValue>, ) -> Self
Push SQL and bind a value with separator.
Sourcepub fn push_bind_if(
self,
condition: bool,
sql: impl Into<String>,
value: impl Into<FilterValue>,
) -> Self
pub fn push_bind_if( self, condition: bool, sql: impl Into<String>, value: impl Into<FilterValue>, ) -> Self
Push SQL and bind conditionally with separator.
Sourcepub fn build(self) -> (String, Vec<FilterValue>)
pub fn build(self) -> (String, Vec<FilterValue>)
Build the final SQL string and parameters.
Trait Implementations§
Source§impl Clone for SeparatedSql
impl Clone for SeparatedSql
Source§fn clone(&self) -> SeparatedSql
fn clone(&self) -> SeparatedSql
Returns a duplicate 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 SeparatedSql
impl RefUnwindSafe for SeparatedSql
impl Send for SeparatedSql
impl Sync for SeparatedSql
impl Unpin for SeparatedSql
impl UnwindSafe for SeparatedSql
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