pub struct Analyzer { /* private fields */ }Expand description
Streaming SQL dump analyzer that gathers per-table statistics.
Implementations§
Source§impl Analyzer
impl Analyzer
Sourcepub fn with_dialect(self, dialect: SqlDialect) -> Self
pub fn with_dialect(self, dialect: SqlDialect) -> Self
Set the SQL dialect for parsing.
Sourcepub fn analyze(self) -> Result<Vec<TableStats>>
pub fn analyze(self) -> Result<Vec<TableStats>>
Run the analysis, returning sorted table statistics.
Sourcepub fn analyze_with_progress<F: Fn(u64) + 'static>(
self,
progress_fn: F,
) -> Result<Vec<TableStats>>
pub fn analyze_with_progress<F: Fn(u64) + 'static>( self, progress_fn: F, ) -> Result<Vec<TableStats>>
Run the analysis with a progress callback, returning sorted table statistics.
Auto Trait Implementations§
impl Freeze for Analyzer
impl RefUnwindSafe for Analyzer
impl Send for Analyzer
impl Sync for Analyzer
impl Unpin for Analyzer
impl UnsafeUnpin for Analyzer
impl UnwindSafe for Analyzer
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more