postgres_protocol::types

Function text_from_sql

source
pub fn text_from_sql(buf: &[u8]) -> Result<&str, Box<dyn Error + Sync + Send>>
Expand description

Deserializes a TEXT, VARCHAR, CHAR(n), NAME, or CITEXT value.