Struct SchemaDiscovery
pub struct SchemaDiscovery { /* private fields */ }Expand description
Performs all the methods for schema discovery of a SQLite database
Implementations§
§impl SchemaDiscovery
impl SchemaDiscovery
pub fn new(pool: SqlitePool) -> Self
pub fn new(pool: SqlitePool) -> Self
Discover schema from a SQLx pool
pub async fn discover(&self) -> DiscoveryResult<Schema>
§impl SchemaDiscovery
impl SchemaDiscovery
pub async fn discover_with<C: Connection>(conn: &C) -> DiscoveryResult<Schema>
pub async fn discover_with<C: Connection>(conn: &C) -> DiscoveryResult<Schema>
Discover all the tables in a SQLite database
Auto Trait Implementations§
impl Freeze for SchemaDiscovery
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