Expand description
Enum to keep the different argument types.
Variants
U64(u64)
I64(i64)
F64(f64)
Str(String)
Bool(bool)
Null
Implementations
sourceimpl SqlArg
impl SqlArg
sourcepub fn to_sql_string(&self) -> String
pub fn to_sql_string(&self) -> String
Build SQL string.
sourcepub fn to_query_string(&self) -> String
pub fn to_query_string(&self) -> String
Build Toql query string.
Trait Implementations
sourceimpl From<&'_ NaiveDateTime> for SqlArg
impl From<&'_ NaiveDateTime> for SqlArg
sourcefn from(t: &NaiveDateTime) -> Self
fn from(t: &NaiveDateTime) -> Self
Converts to this type from the input type.
sourceimpl From<&'_ Option<NaiveDateTime>> for SqlArg
impl From<&'_ Option<NaiveDateTime>> for SqlArg
sourcefn from(t: &Option<NaiveDateTime>) -> Self
fn from(t: &Option<NaiveDateTime>) -> Self
Converts to this type from the input type.
sourceimpl From<NaiveDateTime> for SqlArg
impl From<NaiveDateTime> for SqlArg
sourcefn from(t: NaiveDateTime) -> Self
fn from(t: NaiveDateTime) -> Self
Converts to this type from the input type.
sourceimpl<R, E> FromRow<R, E> for SqlArg where
E: From<ToqlError>,
u64: FromRow<R, E>,
i64: FromRow<R, E>,
f64: FromRow<R, E>,
bool: FromRow<R, E>,
String: FromRow<R, E>,
impl<R, E> FromRow<R, E> for SqlArg where
E: From<ToqlError>,
u64: FromRow<R, E>,
i64: FromRow<R, E>,
f64: FromRow<R, E>,
bool: FromRow<R, E>,
String: FromRow<R, E>,
sourcefn forward<'a, I>(iter: &mut I) -> Result<usize, E> where
I: Iterator<Item = &'a Select>,
fn forward<'a, I>(iter: &mut I) -> Result<usize, E> where
I: Iterator<Item = &'a Select>,
Returns the number of selects This is needed to advance the iterator and the row index. The Deserializer needs this information to skip left joins that have fields selected but are null. Those left joins cause select information in the select stream that must be skipped. Read more
sourcefn from_row<'a, I>(
row: &R,
i: &mut usize,
iter: &mut I
) -> Result<Option<SqlArg>, E> where
I: Iterator<Item = &'a Select> + Clone,
fn from_row<'a, I>(
row: &R,
i: &mut usize,
iter: &mut I
) -> Result<Option<SqlArg>, E> where
I: Iterator<Item = &'a Select> + Clone,
Read row values into struct, starting from index. Advances iter and index Returns None for value unselected values or joined entities that have null keys. Return Error, if value is selected, but cannot be converted. Read more
impl StructuralPartialEq for SqlArg
Auto Trait Implementations
impl RefUnwindSafe for SqlArg
impl Send for SqlArg
impl Sync for SqlArg
impl Unpin for SqlArg
impl UnwindSafe for SqlArg
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more