pub struct UpdatePattern;Expand description
UPDATE query pattern
Trait Implementations§
Source§impl SqlPattern for UpdatePattern
impl SqlPattern for UpdatePattern
fn id(&self) -> &'static str
fn priority(&self) -> u32
Source§fn matches(&self, stmt: &Statement, _ctx: &MatchContext) -> bool
fn matches(&self, stmt: &Statement, _ctx: &MatchContext) -> bool
Check if this pattern matches the SQL statement
fn extract( &self, stmt: &Statement, _ctx: &MatchContext, ) -> Result<PatternData, ExtractError>
Source§fn transform(
&self,
data: &PatternData,
ctx: &TransformContext,
) -> Result<String, TransformError>
fn transform( &self, data: &PatternData, ctx: &TransformContext, ) -> Result<String, TransformError>
Generate QAIL code from extracted data
Auto Trait Implementations§
impl Freeze for UpdatePattern
impl RefUnwindSafe for UpdatePattern
impl Send for UpdatePattern
impl Sync for UpdatePattern
impl Unpin for UpdatePattern
impl UnwindSafe for UpdatePattern
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