pub struct BusinessStatement<'a> { /* private fields */ }Expand description
A parameterized business write borrowed for one transaction call.
Implementations§
Source§impl<'a> BusinessStatement<'a>
impl<'a> BusinessStatement<'a>
Sourcepub const fn new(text: &'a str, values: &'a [BusinessValue<'a>]) -> Self
pub const fn new(text: &'a str, values: &'a [BusinessValue<'a>]) -> Self
Constructs a statement from SQL text and separately bound values.
The PostgreSQL adapter binds every value; it never interpolates these
values into text.
Sourcepub const fn text(&self) -> &'a str
pub const fn text(&self) -> &'a str
Borrows statement text for the authorized database adapter.
Sourcepub const fn values(&self) -> &'a [BusinessValue<'a>]
pub const fn values(&self) -> &'a [BusinessValue<'a>]
Borrows separately bound values.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for BusinessStatement<'a>
impl<'a> RefUnwindSafe for BusinessStatement<'a>
impl<'a> Send for BusinessStatement<'a>
impl<'a> Sync for BusinessStatement<'a>
impl<'a> Unpin for BusinessStatement<'a>
impl<'a> UnsafeUnpin for BusinessStatement<'a>
impl<'a> UnwindSafe for BusinessStatement<'a>
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> 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