diesel::pg::expression::functions

Function family

source
pub fn family<T: InetOrCidr + SingleValue, addr>(addr: addr) -> family<T, addr>
where addr: AsExpression<T>,
Expand description

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