pub enum SqlBindStyle {
DollarNumeric,
QMark,
}Expand description
Set the SQL parameter bind style to either $1..$N (Postgres style) or ? (SQLite/MySQL/MariaDB)
Variants§
DollarNumeric
DollarNumeric uses parameters of the form `$1..$N``, which is the Postgres style
QMark
QMark uses parameters of the form ? which is the style for other dialects (SQLite/MySQL/MariaDB)
Trait Implementations§
Source§impl Debug for SqlBindStyle
impl Debug for SqlBindStyle
Source§impl PartialEq for SqlBindStyle
impl PartialEq for SqlBindStyle
impl StructuralPartialEq for SqlBindStyle
Auto Trait Implementations§
impl Freeze for SqlBindStyle
impl RefUnwindSafe for SqlBindStyle
impl Send for SqlBindStyle
impl Sync for SqlBindStyle
impl Unpin for SqlBindStyle
impl UnwindSafe for SqlBindStyle
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
Source§impl<T> Downcast for T
impl<T> Downcast for T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more