pub struct LoggingDriver { /* private fields */ }Implementations§
Trait Implementations§
Source§impl Debug for LoggingDriver
impl Debug for LoggingDriver
Source§impl Driver for LoggingDriver
impl Driver for LoggingDriver
Source§fn capability(&self) -> &'static Capability
fn capability(&self) -> &'static Capability
Describes the driver’s capability, which informs the query planner.
Source§fn connect<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Box<dyn Connection>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn connect<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Box<dyn Connection>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Creates a new connection to the database. Read more
Source§fn generate_migration(&self, schema_diff: &SchemaDiff<'_>) -> Migration
fn generate_migration(&self, schema_diff: &SchemaDiff<'_>) -> Migration
Generates a migration from a
SchemaDiff.Source§fn reset_db<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn reset_db<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Drops the entire database and recreates an empty one without applying migrations.
Source§fn max_connections(&self) -> Option<usize>
fn max_connections(&self) -> Option<usize>
Returns the maximum number of simultaneous database connections supported. For example,
this is
Some(1) for the in-memory SQLite driver which cannot be pooled.Auto Trait Implementations§
impl Freeze for LoggingDriver
impl !RefUnwindSafe for LoggingDriver
impl Send for LoggingDriver
impl Sync for LoggingDriver
impl Unpin for LoggingDriver
impl !UnwindSafe for LoggingDriver
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