MCPcopy Create free account
hub / github.com/TankHQ/tank / from_sql_nullable

Method from_sql_nullable

tank-postgres/src/value_wrap.rs:40–45  ·  view source on GitHub ↗
(
        ty: &Type,
        raw: Option<&'a [u8]>,
    )

Source from the content-addressed store, hash-verified

38 fn from_sql_null(ty: &Type) -> Result<Self, Box<dyn Error + Sync + Send>> {
39 Self::from_sql_nullable(ty, None)
40 }
41 fn from_sql_nullable(
42 ty: &Type,
43 raw: Option<&'a [u8]>,
44 ) -> Result<Self, Box<dyn Error + Sync + Send>> {
45 extract_value(ty, raw).map(Into::into)
46 }
47
48 fn accepts(_ty: &Type) -> bool {

Callers

nothing calls this directly

Calls 1

extract_valueFunction · 0.70

Tested by

no test coverage detected