pub struct SqlCommand<Arg> {
pub command: String,
pub arguments: Arg,
}Fields§
§command: String§arguments: ArgImplementations§
Source§impl<Arg> SqlCommand<Arg>
impl<Arg> SqlCommand<Arg>
pub const fn new(command: String, arguments: Arg) -> Self
pub fn push_expr<T>(
&mut self,
operand: SqlExpr<'_, T>,
) -> Result<(), Arg::Error>where
Arg: ArgumentBuffer<T>,
pub fn push_value<T>(&mut self, value: T) -> Result<(), Arg::Error>where
Arg: ArgumentBuffer<T>,
pub fn push_cmd(&mut self, expr: &str)
pub fn as_command(&self) -> &str
Trait Implementations§
Source§impl<Arg: Clone> Clone for SqlCommand<Arg>
impl<Arg: Clone> Clone for SqlCommand<Arg>
Source§fn clone(&self) -> SqlCommand<Arg>
fn clone(&self) -> SqlCommand<Arg>
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 moreSource§impl<Arg: Debug> Debug for SqlCommand<Arg>
impl<Arg: Debug> Debug for SqlCommand<Arg>
Source§impl<Arg: Default> Default for SqlCommand<Arg>
impl<Arg: Default> Default for SqlCommand<Arg>
Source§fn default() -> SqlCommand<Arg>
fn default() -> SqlCommand<Arg>
Returns the “default value” for a type. Read more
Source§impl<Arg: PartialEq> PartialEq for SqlCommand<Arg>
impl<Arg: PartialEq> PartialEq for SqlCommand<Arg>
Source§impl<Arg> WriteSql<Arg> for SqlCommand<Arg>
impl<Arg> WriteSql<Arg> for SqlCommand<Arg>
impl<Arg: Eq> Eq for SqlCommand<Arg>
impl<Arg> StructuralPartialEq for SqlCommand<Arg>
Auto Trait Implementations§
impl<Arg> Freeze for SqlCommand<Arg>where
Arg: Freeze,
impl<Arg> RefUnwindSafe for SqlCommand<Arg>where
Arg: RefUnwindSafe,
impl<Arg> Send for SqlCommand<Arg>where
Arg: Send,
impl<Arg> Sync for SqlCommand<Arg>where
Arg: Sync,
impl<Arg> Unpin for SqlCommand<Arg>where
Arg: Unpin,
impl<Arg> UnwindSafe for SqlCommand<Arg>where
Arg: UnwindSafe,
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