pub struct BoundRuleStatement { /* private fields */ }Expand description
Only SQL-owned operations can replace a clause; callers borrow the complete statement without detaching its allocation owners.
Implementations§
Source§impl BoundRuleStatement
impl BoundRuleStatement
pub fn bind( catalog: &dyn RuleSourceCatalog, action: &Statement, action_columns: &dyn ActionColumns, resolver: &mut dyn VariableResolver, control: &ProductionControl<'_>, ) -> Result<Self, SQLError>
pub fn statement(&self) -> &Statement
pub fn reserved_bytes(&self) -> usize
pub fn into_produced(self) -> Result<Produced<Statement>, SQLError>
pub fn clear_returning(&mut self) -> Result<(), SQLError>
Sourcepub fn augment_returning(
&mut self,
source_index: Option<&Expr>,
event_width: usize,
request: RuleReturningRequest,
target_columns: &dyn ActionColumns,
) -> Result<(), SQLError>
pub fn augment_returning( &mut self, source_index: Option<&Expr>, event_width: usize, request: RuleReturningRequest, target_columns: &dyn ActionColumns, ) -> Result<(), SQLError>
Construct all requested images before replacing the old list. Rejection or cancellation leaves the original statement and its leases intact.
pub fn append_returning_context( &mut self, expressions: &[Expr], ) -> Result<(), SQLError>
Auto Trait Implementations§
impl !RefUnwindSafe for BoundRuleStatement
impl !UnwindSafe for BoundRuleStatement
impl Freeze for BoundRuleStatement
impl Send for BoundRuleStatement
impl Sync for BoundRuleStatement
impl Unpin for BoundRuleStatement
impl UnsafeUnpin for BoundRuleStatement
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<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