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 - The
tablesample
method
Functions§
- Creates an abbreviated display format as text.
- all
Deprecated with-deprecated
and non-without-deprecated
Creates a PostgreSQLALL
expression. - any
Deprecated with-deprecated
and non-without-deprecated
Creates a PostgreSQLANY
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§
- The return type of
abbrev()
- The return type of
broadcast()
- The return type of
family()
- The return type of
host()
- The return type of
hostmask()
- The return type of
inet_merge()
- The return type of
inet_same_family()
- The return type of
masklen()
- The return type of
netmask()
- The return type of
network()
- The return type of
set_masklen()