KnownCastSqlTypeName

Trait KnownCastSqlTypeName 

Source
pub trait KnownCastSqlTypeName<DB> {
    const SQL_TYPE_NAME: &'static str;
}
Expand description

We know what to write as sql_type in the CAST(expr AS sql_type) SQL for Self

That is what is returned by Self::sql_type_name()

Required Associated Constants§

Source

const SQL_TYPE_NAME: &'static str

What to write as sql_type in the CAST(expr AS sql_type) SQL for Self

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl KnownCastSqlTypeName<Mysql> for Date

Available on crate feature mysql_backend only.
Source§

const SQL_TYPE_NAME: &'static str = "date"

Source§

impl KnownCastSqlTypeName<Mysql> for Datetime

Available on crate feature mysql_backend only.
Source§

const SQL_TYPE_NAME: &'static str = "datetime"

Source§

impl KnownCastSqlTypeName<Mysql> for Text

Available on crate feature mysql_backend only.
Source§

const SQL_TYPE_NAME: &'static str = "char"

Source§

impl KnownCastSqlTypeName<Mysql> for Time

Available on crate feature mysql_backend only.
Source§

const SQL_TYPE_NAME: &'static str = "time"

Source§

impl KnownCastSqlTypeName<Mysql> for Decimal

Available on crate feature mysql_backend only.
Source§

const SQL_TYPE_NAME: &'static str = "decimal"

Source§

impl KnownCastSqlTypeName<Pg> for Bool

Available on crate feature postgres_backend only.
Source§

const SQL_TYPE_NAME: &'static str = "bool"

Source§

impl KnownCastSqlTypeName<Pg> for Date

Available on crate feature postgres_backend only.
Source§

const SQL_TYPE_NAME: &'static str = "date"

Source§

impl KnownCastSqlTypeName<Pg> for Double

Available on crate feature postgres_backend only.
Source§

const SQL_TYPE_NAME: &'static str = "float8"

Source§

impl KnownCastSqlTypeName<Pg> for Float

Available on crate feature postgres_backend only.
Source§

const SQL_TYPE_NAME: &'static str = "float4"

Source§

impl KnownCastSqlTypeName<Pg> for Interval

Available on crate feature postgres_backend only.
Source§

const SQL_TYPE_NAME: &'static str = "interval"

Source§

impl KnownCastSqlTypeName<Pg> for Json

Available on crate feature postgres_backend only.
Source§

const SQL_TYPE_NAME: &'static str = "json"

Source§

impl KnownCastSqlTypeName<Pg> for Jsonb

Available on crate feature postgres_backend only.
Source§

const SQL_TYPE_NAME: &'static str = "jsonb"

Source§

impl KnownCastSqlTypeName<Pg> for Numeric

Available on crate feature postgres_backend only.
Source§

const SQL_TYPE_NAME: &'static str = "numeric"

Source§

impl KnownCastSqlTypeName<Pg> for Text

Available on crate feature postgres_backend only.
Source§

const SQL_TYPE_NAME: &'static str = "text"

Source§

impl KnownCastSqlTypeName<Pg> for Time

Available on crate feature postgres_backend only.
Source§

const SQL_TYPE_NAME: &'static str = "time"

Source§

impl KnownCastSqlTypeName<Pg> for Timestamp

Available on crate feature postgres_backend only.
Source§

const SQL_TYPE_NAME: &'static str = "timestamp"

Source§

impl KnownCastSqlTypeName<Pg> for Uuid

Available on crate feature postgres_backend only.
Source§

const SQL_TYPE_NAME: &'static str = "uuid"

Source§

impl KnownCastSqlTypeName<Sqlite> for Json

Available on crate feature sqlite only.
Source§

const SQL_TYPE_NAME: &'static str = "json"

Source§

impl KnownCastSqlTypeName<Sqlite> for Jsonb

Available on crate feature sqlite only.
Source§

const SQL_TYPE_NAME: &'static str = "jsonb"

Source§

impl KnownCastSqlTypeName<Sqlite> for Text

Available on crate feature sqlite only.
Source§

const SQL_TYPE_NAME: &'static str = "text"

Source§

impl<ST, DB> KnownCastSqlTypeName<DB> for Nullable<ST>
where ST: KnownCastSqlTypeName<DB>,

Source§

const SQL_TYPE_NAME: &'static str