pub struct star;
Expand description
Represents table_name.*
, which is sometimes needed for
efficient count queries. It cannot be used in place of
all_columns
, and has a SqlType
of ()
to prevent it
being used that way
Trait Implementations§
source§impl<DB: Backend> QueryFragment<DB> for starwhere
<table as QuerySource>::FromClause: QueryFragment<DB>,
impl<DB: Backend> QueryFragment<DB> for starwhere <table as QuerySource>::FromClause: QueryFragment<DB>,
source§fn walk_ast(&self, out: AstPass<'_, DB>) -> QueryResult<()>
fn walk_ast(&self, out: AstPass<'_, DB>) -> QueryResult<()>
Walk over this
QueryFragment
for all passes. Read moresource§fn to_sql(&self, out: &mut <DB as Backend>::QueryBuilder) -> Result<(), Error>
fn to_sql(&self, out: &mut <DB as Backend>::QueryBuilder) -> Result<(), Error>
Converts this
QueryFragment
to its SQL representation. Read moresource§fn collect_binds(
&self,
out: &mut <DB as Backend>::BindCollector,
metadata_lookup: &<DB as TypeMetadata>::MetadataLookup
) -> Result<(), Error>
fn collect_binds( &self, out: &mut <DB as Backend>::BindCollector, metadata_lookup: &<DB as TypeMetadata>::MetadataLookup ) -> Result<(), Error>
Serializes all bind parameters in this query. Read more
impl AppearsOnTable<table> for star
impl Copy for star
impl SelectableExpression<table> for star
Auto Trait Implementations§
impl RefUnwindSafe for star
impl Send for star
impl Sync for star
impl Unpin for star
impl UnwindSafe for star
Blanket Implementations§
source§impl<T> AsExpression<<T as Expression>::SqlType> for Twhere
T: Expression,
impl<T> AsExpression<<T as Expression>::SqlType> for Twhere T: Expression,
§type Expression = T
type Expression = T
The expression being returned
source§fn as_expression(self) -> T
fn as_expression(self) -> T
Perform the conversion
§impl<'a, T> AsTaggedExplicit<'a> for Twhere
T: 'a,
impl<'a, T> AsTaggedExplicit<'a> for Twhere T: 'a,
§impl<'a, T> AsTaggedImplicit<'a> for Twhere
T: 'a,
impl<'a, T> AsTaggedImplicit<'a> for Twhere T: 'a,
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> IntoSql for T
impl<T> IntoSql for T
source§fn into_sql<T>(self) -> Self::Expressionwhere
Self: AsExpression<T> + Sized,
fn into_sql<T>(self) -> Self::Expressionwhere Self: AsExpression<T> + Sized,
Convert
self
to an expression for Diesel’s query builder. Read moresource§fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expressionwhere
&'a Self: AsExpression<T>,
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expressionwhere &'a Self: AsExpression<T>,
Convert
&self
to an expression for Diesel’s query builder. Read more