Struct sea_schema::sqlite::discovery::SchemaDiscovery
source · pub struct SchemaDiscovery {
pub executor: Executor,
}
Available on crate features
sqlite
and discovery
only.Expand description
Performs all the methods for schema discovery of a SQLite database
Fields§
§executor: Executor
Implementations§
source§impl SchemaDiscovery
impl SchemaDiscovery
sourcepub fn new(sqlite_pool: SqlitePool) -> Self
pub fn new(sqlite_pool: SqlitePool) -> Self
Instantiate a new database connection to the database specified
sourcepub async fn discover(&self) -> DiscoveryResult<Schema>
pub async fn discover(&self) -> DiscoveryResult<Schema>
Discover all the tables in a SQLite database
sourcepub async fn discover_indexes(&self) -> DiscoveryResult<Vec<IndexInfo>>
pub async fn discover_indexes(&self) -> DiscoveryResult<Vec<IndexInfo>>
Discover table indexes
Auto Trait Implementations§
impl RefUnwindSafe for SchemaDiscovery
impl Send for SchemaDiscovery
impl Sync for SchemaDiscovery
impl Unpin for SchemaDiscovery
impl UnwindSafe for SchemaDiscovery
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