pub struct ParsedStatement<'sql> { /* private fields */ }Expand description
A syntactically valid statement retaining its exact source slice. Compilation is separate so an execution boundary can analyze statements in order after preceding commands have completed.
Implementations§
Source§impl<'sql> ParsedStatement<'sql>
impl<'sql> ParsedStatement<'sql>
Sourcepub const fn sql(&self) -> &'sql str
pub const fn sql(&self) -> &'sql str
Original SQL, without reconstructing or rewriting the parser tree.
Sourcepub fn is_notification_listener_command(&self) -> bool
pub fn is_notification_listener_command(&self) -> bool
Identify a direct LISTEN or UNLISTEN without semantic compilation or inspecting strings and routine bodies. Nested commands must still be checked when executed.
Trait Implementations§
Source§impl<'sql> Clone for ParsedStatement<'sql>
impl<'sql> Clone for ParsedStatement<'sql>
Auto Trait Implementations§
impl<'sql> Freeze for ParsedStatement<'sql>
impl<'sql> RefUnwindSafe for ParsedStatement<'sql>
impl<'sql> Send for ParsedStatement<'sql>
impl<'sql> Sync for ParsedStatement<'sql>
impl<'sql> Unpin for ParsedStatement<'sql>
impl<'sql> UnsafeUnpin for ParsedStatement<'sql>
impl<'sql> UnwindSafe for ParsedStatement<'sql>
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
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