[][src]Enum quaint::prelude::SqlFamily

pub enum SqlFamily {
    Postgres,
    Mysql,
    Sqlite,
}

One of the supported SQL variants.

Variants

Postgres
Mysql
Sqlite

Methods

impl SqlFamily[src]

pub fn as_str(self) -> &'static str[src]

Get a string representation of the family.

pub fn from_scheme(url_scheme: &str) -> Option<Self>[src]

Convert url scheme to an SqlFamily.

pub fn scheme_is_supported(url_scheme: &str) -> bool[src]

Check if a family exists for the given scheme.

pub fn is_postgres(&self) -> bool[src]

pub fn is_mysql(&self) -> bool[src]

pub fn is_sqlite(&self) -> bool[src]

Trait Implementations

impl Clone for SqlFamily[src]

impl Copy for SqlFamily[src]

impl Debug for SqlFamily[src]

impl Display for SqlFamily[src]

impl PartialEq<SqlFamily> for SqlFamily[src]

impl StructuralPartialEq for SqlFamily[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,