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