Module diesel::pg::expression::dsl

source ·
Available on crate feature postgres_backend only.
Expand description

PostgreSQL specific expression DSL methods.

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

Traits

  • A DSL added to integers and f64 to construct PostgreSQL intervals.
  • The only method

Functions

  • Creates an abbreviated display format as text.
  • allDeprecatedwith-deprecated and non-without-deprecated
    Creates a PostgreSQL ALL expression.
  • anyDeprecatedwith-deprecated and non-without-deprecated
    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.