Struct butane::query::Query [−][src]
pub struct Query<T> where
T: DataResult, { /* fields omitted */ }
Expand description
Representation of a database query.
Implementations
Creates a query which matches all objects in table
. The set
of matched objects can be restricted with filter
and
limit
.
Restricts the query to matching only objects for which expr
is true. Returns self
as this method is expected to be
chained.
Limits the query to matching the first lim
objects. Returns
self
as this method is expected to be chained.
Order the query results by the given column. Multiple calls to
this method may be made, with earlier calls taking precedence.
It is recommended to use the colname!
macro to construct the column name in a typesafe manner.
Shorthand for order(column, OrderDirection::Ascending)
Shorthand for order(column, OrderDirection::Descending)
Executes the query against conn
and returns the first result (if any).
Executes the query against conn
.
Trait Implementations
Auto Trait Implementations
impl<T> RefUnwindSafe for Query<T> where
T: RefUnwindSafe,
impl<T> UnwindSafe for Query<T> where
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
type Output = T
type Output = T
Should always be Self
pub fn vzip(self) -> V