pub struct ConcurrentIntrospector { /* private fields */ }Expand description
Concurrent database introspector.
Implementations§
Source§impl ConcurrentIntrospector
impl ConcurrentIntrospector
Sourcepub fn new(config: IntrospectionConfig) -> Self
pub fn new(config: IntrospectionConfig) -> Self
Create a new concurrent introspector.
Sourcepub async fn introspect_tables<F, Fut>(
&self,
table_names: Vec<String>,
operation: F,
) -> IntrospectionResult
pub async fn introspect_tables<F, Fut>( &self, table_names: Vec<String>, operation: F, ) -> IntrospectionResult
Introspect tables concurrently using a custom operation.
The operation function is called for each table name and should
return the table metadata.
Sourcepub async fn introspect_named<F, Fut>(
&self,
table_names: Vec<String>,
operation: F,
) -> IntrospectionResult
pub async fn introspect_named<F, Fut>( &self, table_names: Vec<String>, operation: F, ) -> IntrospectionResult
Introspect tables with associated names for error tracking.
Sourcepub fn config(&self) -> &IntrospectionConfig
pub fn config(&self) -> &IntrospectionConfig
Get the configuration.
Auto Trait Implementations§
impl Freeze for ConcurrentIntrospector
impl !RefUnwindSafe for ConcurrentIntrospector
impl Send for ConcurrentIntrospector
impl Sync for ConcurrentIntrospector
impl Unpin for ConcurrentIntrospector
impl !UnwindSafe for ConcurrentIntrospector
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