Module diesel::pg::expression::functions

source ·
Available on crate feature postgres_backend only.
Expand description

PostgreSQL specific functions

Functions§

  • Creates an abbreviated display format as text.
  • Computes the broadcast address for the address’s network.
  • Returns range of date.
  • Returns the address’s family: 4 for IPv4, 6 for IPv6.
  • Returns the IP address as text, ignoring the netmask.
  • Computes the host mask for the address’s network.
  • Computes the smallest network that includes both of the given networks.
  • Tests whether the addresses belong to the same IP family.
  • Returns range of integer.
  • Returns range of integer.
  • Returns true if the range is empty.
  • Returns the lower bound of the range. if the range is empty or has no lower bound, it returns NULL.
  • Returns true if the range’s lower bound is inclusive.
  • Returns true if the range’s lower bound is unbounded.
  • Returns the netmask length in bits.
  • Computes the network mask for the address’s network.
  • Returns the network part of the address, zeroing out whatever is to the right of the netmask. (This is equivalent to casting the value to cidr.)
  • Returns range of number.
  • Returns the smallest range which includes both of the given ranges.
  • Sets the netmask length for an inet or cidr value. For inet, the address part does not changes. For cidr, address bits to the right of the new netmask are set to zero.
  • Returns range of timestamp without timezone.
  • Returns range of timestamp with timezone.
  • Returns the upper bound of the range. if the range is empty or has no upper bound, it returns NULL.
  • Returns true if the range’s upper bound is inclusive.
  • Returns true if the range’s upper bound is unbounded.

Type Aliases§