pub struct DeletePattern;Expand description
DELETE query pattern
Trait Implementations§
Source§impl SqlPattern for DeletePattern
impl SqlPattern for DeletePattern
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 DeletePattern
impl RefUnwindSafe for DeletePattern
impl Send for DeletePattern
impl Sync for DeletePattern
impl Unpin for DeletePattern
impl UnwindSafe for DeletePattern
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