[][src]Trait sqlx_core::types::HasSqlType

pub trait HasSqlType<T: ?Sized>: Database {
    fn type_info() -> Self::TypeInfo;
}

Indicates that a SQL type is supported for a database.

Required methods

fn type_info() -> Self::TypeInfo

Returns the canonical type information on the database for the type T.

Loading content...

Implementors

impl<'_, T: ?Sized, DB> HasSqlType<&'_ T> for DB where
    DB: HasSqlType<T>, 
[src]

impl<T, DB> HasSqlType<Option<T>> for DB where
    DB: HasSqlType<T>, 
[src]

Loading content...