pub struct Introspector { /* private fields */ }Expand description
Database introspector.
Implementations§
Source§impl Introspector
impl Introspector
Sourcepub async fn table_names<C: Connection>(
&self,
cx: &Cx,
conn: &C,
) -> Outcome<Vec<String>, Error>
pub async fn table_names<C: Connection>( &self, cx: &Cx, conn: &C, ) -> Outcome<Vec<String>, Error>
List all table names in the database.
Sourcepub async fn table_info<C: Connection>(
&self,
cx: &Cx,
conn: &C,
table_name: &str,
) -> Outcome<TableInfo, Error>
pub async fn table_info<C: Connection>( &self, cx: &Cx, conn: &C, table_name: &str, ) -> Outcome<TableInfo, Error>
Get detailed information about a table.
Sourcepub async fn introspect_all<C: Connection>(
&self,
cx: &Cx,
conn: &C,
) -> Outcome<DatabaseSchema, Error>
pub async fn introspect_all<C: Connection>( &self, cx: &Cx, conn: &C, ) -> Outcome<DatabaseSchema, Error>
Introspect the entire database schema.
Auto Trait Implementations§
impl Freeze for Introspector
impl RefUnwindSafe for Introspector
impl Send for Introspector
impl Sync for Introspector
impl Unpin for Introspector
impl UnsafeUnpin for Introspector
impl UnwindSafe for Introspector
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, _span: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Instruments this future with a span (no-op when disabled).
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> Self
Instruments this future with the current span (no-op when disabled).