diesel::pg::expression::functions

Function family

Source
pub fn family<T: InetOrCidr + SingleValue, addr>(addr: addr) -> family<T, addr>
where addr: AsExpression<T>,
Available on crate feature postgres_backend only.
Expand description

Returns the address’s family: 4 for IPv4, 6 for IPv6.