pub enum Driver {
Postgres,
MySql,
Sqlite,
}Expand description
Database driver type.
Variants§
Implementations§
Source§impl Driver
impl Driver
Sourcepub fn default_port(&self) -> Option<u16>
pub fn default_port(&self) -> Option<u16>
Get the default port for this driver.
Sourcepub fn from_scheme(scheme: &str) -> ConnectionResult<Self>
pub fn from_scheme(scheme: &str) -> ConnectionResult<Self>
Parse driver from URL scheme.
Trait Implementations§
impl Copy for Driver
impl Eq for Driver
impl StructuralPartialEq for Driver
Auto Trait Implementations§
impl Freeze for Driver
impl RefUnwindSafe for Driver
impl Send for Driver
impl Sync for Driver
impl Unpin for Driver
impl UnwindSafe for Driver
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