pub struct TableOperationExtractor;Expand description
Struct-style entry point. Equivalent to the free
extract_table_operations function.
Implementations§
Source§impl TableOperationExtractor
impl TableOperationExtractor
Sourcepub fn extract(
dialect: &dyn Dialect,
sql: &str,
) -> Result<Vec<Result<TableOperation, Error>>, Error>
pub fn extract( dialect: &dyn Dialect, sql: &str, ) -> Result<Vec<Result<TableOperation, Error>>, Error>
Same as the free extract_table_operations 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<TableOperation, Error>>, Error>
pub fn extract_with_options( dialect: &dyn Dialect, sql: &str, options: ExtractorOptions<'_>, ) -> Result<Vec<Result<TableOperation, 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 TableOperationExtractor
impl Debug for TableOperationExtractor
Source§impl Default for TableOperationExtractor
impl Default for TableOperationExtractor
Source§fn default() -> TableOperationExtractor
fn default() -> TableOperationExtractor
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for TableOperationExtractor
impl RefUnwindSafe for TableOperationExtractor
impl Send for TableOperationExtractor
impl Sync for TableOperationExtractor
impl Unpin for TableOperationExtractor
impl UnsafeUnpin for TableOperationExtractor
impl UnwindSafe for TableOperationExtractor
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