Introspect

Trait Introspect 

Source
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§

Source

type Error: Error

Error type for introspection failures.

Required Methods§

Source

fn introspect_schema(&self) -> Result<SchemaSnapshot, Self::Error>

Reads the current database schema and returns a snapshot.

Implementors§