[−][src]Trait sqlx::decode::Decode
Decode a single value from the database.
Required methods
Loading content...Provided methods
fn decode_null() -> Result<Self, DecodeError>
Creates a new value of this type from a NULL
SQL value.
The default implementation returns [DecodeError::UnexpectedNull].
fn decode_nullable(raw: Option<&[u8]>) -> Result<Self, DecodeError>
Implementations on Foreign Types
impl<T, DB> Decode<DB> for Option<T> where
DB: Database + HasSqlType<T>,
T: Decode<DB>,
[src]
DB: Database + HasSqlType<T>,
T: Decode<DB>,