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§