pub trait Introspect {
type Error: Error;
// Required method
fn introspect_schema(&self) -> Result<SchemaSnapshot, Self::Error>;
}Expand description
Introspects a live database connection to produce a
SchemaSnapshot of the current schema.
Implementations live in driver crates (e.g. oxide-sql-sqlite).
Required Associated Types§
Required Methods§
Sourcefn introspect_schema(&self) -> Result<SchemaSnapshot, Self::Error>
fn introspect_schema(&self) -> Result<SchemaSnapshot, Self::Error>
Reads the current database schema and returns a snapshot.