Module diesel::pg::expression::dsl

source ·
Expand description

PostgreSQL specific expression DSL methods.

This module will be glob imported by diesel::dsl when compiled with the feature = "postgres" flag.

Traits§

Functions§

  • Creates an abbreviated display format as text.
  • allDeprecated
    Creates a PostgreSQL ALL expression.
  • anyDeprecated
    Creates a PostgreSQL ANY expression.
  • Creates an ARRAY[...] expression.
  • Computes the broadcast address for the address’s network.
  • 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 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.)
  • 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.

Type Aliases§