pub struct CrudTableExtractor { /* private fields */ }Expand description
A visitor to extract CRUD tables from SQL.
Implementations§
Trait Implementations§
Source§impl Debug for CrudTableExtractor
impl Debug for CrudTableExtractor
Source§impl Default for CrudTableExtractor
impl Default for CrudTableExtractor
Source§fn default() -> CrudTableExtractor
fn default() -> CrudTableExtractor
Returns the “default value” for a type. Read more
Source§impl Visitor for CrudTableExtractor
impl Visitor for CrudTableExtractor
Source§fn pre_visit_statement(
&mut self,
statement: &Statement,
) -> ControlFlow<Self::Break>
fn pre_visit_statement( &mut self, statement: &Statement, ) -> ControlFlow<Self::Break>
Invoked for any statements that appear in the AST before visiting children
Source§fn pre_visit_query(&mut self, _query: &Query) -> ControlFlow<Self::Break>
fn pre_visit_query(&mut self, _query: &Query) -> ControlFlow<Self::Break>
Invoked for any queries that appear in the AST before visiting children
Source§fn post_visit_query(&mut self, _query: &Query) -> ControlFlow<Self::Break>
fn post_visit_query(&mut self, _query: &Query) -> ControlFlow<Self::Break>
Invoked for any queries that appear in the AST after visiting children
Source§fn pre_visit_relation(
&mut self,
_relation: &ObjectName,
) -> ControlFlow<Self::Break>
fn pre_visit_relation( &mut self, _relation: &ObjectName, ) -> ControlFlow<Self::Break>
Invoked for any relations (e.g. tables) that appear in the AST before visiting children
Source§fn post_visit_relation(
&mut self,
_relation: &ObjectName,
) -> ControlFlow<Self::Break>
fn post_visit_relation( &mut self, _relation: &ObjectName, ) -> ControlFlow<Self::Break>
Invoked for any relations (e.g. tables) that appear in the AST after visiting children
Source§fn pre_visit_table_factor(
&mut self,
_table_factor: &TableFactor,
) -> ControlFlow<Self::Break>
fn pre_visit_table_factor( &mut self, _table_factor: &TableFactor, ) -> ControlFlow<Self::Break>
Invoked for any table factors that appear in the AST before visiting children
Source§fn post_visit_table_factor(
&mut self,
_table_factor: &TableFactor,
) -> ControlFlow<Self::Break>
fn post_visit_table_factor( &mut self, _table_factor: &TableFactor, ) -> ControlFlow<Self::Break>
Invoked for any table factors that appear in the AST after visiting children
Source§fn pre_visit_expr(&mut self, _expr: &Expr) -> ControlFlow<Self::Break>
fn pre_visit_expr(&mut self, _expr: &Expr) -> ControlFlow<Self::Break>
Invoked for any expressions that appear in the AST before visiting children
Source§fn post_visit_expr(&mut self, _expr: &Expr) -> ControlFlow<Self::Break>
fn post_visit_expr(&mut self, _expr: &Expr) -> ControlFlow<Self::Break>
Invoked for any expressions that appear in the AST
Source§fn post_visit_statement(
&mut self,
_statement: &Statement,
) -> ControlFlow<Self::Break>
fn post_visit_statement( &mut self, _statement: &Statement, ) -> ControlFlow<Self::Break>
Invoked for any statements that appear in the AST after visiting children
Auto Trait Implementations§
impl Freeze for CrudTableExtractor
impl RefUnwindSafe for CrudTableExtractor
impl Send for CrudTableExtractor
impl Sync for CrudTableExtractor
impl Unpin for CrudTableExtractor
impl UnwindSafe for CrudTableExtractor
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