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§
Sourceconst SQL_TYPE_NAME: &'static str
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<Sqlite> for Json
Available on crate feature sqlite only.
impl KnownCastSqlTypeName<Sqlite> for Json
Available on crate feature
sqlite only.const SQL_TYPE_NAME: &'static str = "json"
Source§impl KnownCastSqlTypeName<Sqlite> for Jsonb
Available on crate feature sqlite only.
impl KnownCastSqlTypeName<Sqlite> for Jsonb
Available on crate feature
sqlite only.const SQL_TYPE_NAME: &'static str = "jsonb"
Source§impl KnownCastSqlTypeName<Sqlite> for Text
Available on crate feature sqlite only.
impl KnownCastSqlTypeName<Sqlite> for Text
Available on crate feature
sqlite only.