pub struct DatabaseIntrospector { /* private fields */ }Expand description
Database introspection engine for reading existing PostgreSQL schema
Implementations§
Source§impl DatabaseIntrospector
impl DatabaseIntrospector
Sourcepub async fn introspect_tables(&self) -> Result<Vec<Table>>
pub async fn introspect_tables(&self) -> Result<Vec<Table>>
Introspect all tables from information_schema
Sourcepub async fn introspect_tables_old(&self) -> Result<Vec<Table>>
pub async fn introspect_tables_old(&self) -> Result<Vec<Table>>
Introspect all tables from information_schema (original version for reference)
Sourcepub async fn introspect_views(&self) -> Result<Vec<View>>
pub async fn introspect_views(&self) -> Result<Vec<View>>
Introspect all views including materialized views
Sourcepub async fn introspect_indexes(&self) -> Result<Vec<Index>>
pub async fn introspect_indexes(&self) -> Result<Vec<Index>>
Introspect indexes, constraints, and foreign keys
Sourcepub async fn introspect_composite_types(&self) -> Result<Vec<CompositeType>>
pub async fn introspect_composite_types(&self) -> Result<Vec<CompositeType>>
Introspect composite types (our new feature!)
Sourcepub async fn introspect_functions(&self) -> Result<Vec<StoredFunction>>
pub async fn introspect_functions(&self) -> Result<Vec<StoredFunction>>
Introspect stored functions
Sourcepub async fn introspect_procedures(&self) -> Result<Vec<StoredProcedure>>
pub async fn introspect_procedures(&self) -> Result<Vec<StoredProcedure>>
Introspect stored procedures
Sourcepub async fn introspect_triggers(&self) -> Result<Vec<Trigger>>
pub async fn introspect_triggers(&self) -> Result<Vec<Trigger>>
Introspect triggers
Auto Trait Implementations§
impl !RefUnwindSafe for DatabaseIntrospector
impl !UnwindSafe for DatabaseIntrospector
impl Freeze for DatabaseIntrospector
impl Send for DatabaseIntrospector
impl Sync for DatabaseIntrospector
impl Unpin for DatabaseIntrospector
impl UnsafeUnpin for DatabaseIntrospector
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
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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