pub struct CrudTableExtractor;Expand description
Struct-style entry point. Equivalent to the free
extract_crud_tables function. A thin shim over
TableOperationExtractor that buckets reads/writes into the
CRUD positions, consulting the bind’s normalized MERGE clause summary
(rather than re-walking the raw AST) for the one verb-aware case —
whose target placement depends on the WHEN actions.
Implementations§
Source§impl CrudTableExtractor
impl CrudTableExtractor
Sourcepub fn extract(
dialect: &dyn Dialect,
sql: &str,
) -> Result<Vec<Result<CrudTables, Error>>, Error>
pub fn extract( dialect: &dyn Dialect, sql: &str, ) -> Result<Vec<Result<CrudTables, Error>>, Error>
Same as the free extract_crud_tables function — kept for
users who prefer the struct-style API.
Sourcepub fn extract_with_options(
dialect: &dyn Dialect,
sql: &str,
options: ExtractorOptions<'_>,
) -> Result<Vec<Result<CrudTables, Error>>, Error>
pub fn extract_with_options( dialect: &dyn Dialect, sql: &str, options: ExtractorOptions<'_>, ) -> Result<Vec<Result<CrudTables, Error>>, Error>
Like extract but with ExtractorOptions — a
catalog and/or an identifier-casing override. dialect still
drives parsing; the options govern only the analysis.
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
Auto Trait Implementations§
impl Freeze for CrudTableExtractor
impl RefUnwindSafe for CrudTableExtractor
impl Send for CrudTableExtractor
impl Sync for CrudTableExtractor
impl Unpin for CrudTableExtractor
impl UnsafeUnpin 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