pub struct Statement<'a> {
pub sql: &'a str,
pub params: &'a [Option<&'a str>],
pub user_sql: bool,
pub fetch: FetchLimits,
pub offset: Option<u32>,
pub search_path_catalog_only: bool,
}Expand description
One SQL execution: the text, its bind values, whether it is user SQL and its fetch limits.
Fields§
§sql: &'a str§params: &'a [Option<&'a str>]§user_sql: bool§fetch: FetchLimits§offset: Option<u32>Characters the runner prepended to the submitted SQL, subtracted from error positions; None when the submitted text was rewritten and no position can be reported.
search_path_catalog_only: boolTrue when the server’s own catalog SQL runs; false for user SQL, which keeps the role’s search_path.
Auto Trait Implementations§
impl<'a> Forget for Statement<'a>
impl<'a> Freeze for Statement<'a>
impl<'a> Move for Statement<'a>
impl<'a> RefUnwindSafe for Statement<'a>
impl<'a> Send for Statement<'a>
impl<'a> Sync for Statement<'a>
impl<'a> Unpin for Statement<'a>
impl<'a> UnsafeUnpin for Statement<'a>
impl<'a> UnwindSafe for Statement<'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
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
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