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