Struct lemmy_db_schema::schema::community_aggregates::columns::star [−][src]
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
impl<DB: Backend> QueryFragment<DB> for star where
<table as QuerySource>::FromClause: QueryFragment<DB>,
impl<DB: Backend> QueryFragment<DB> for star where
<table as QuerySource>::FromClause: QueryFragment<DB>,
Walk over this QueryFragment
for all passes. Read more
Converts this QueryFragment
to its SQL representation. Read more
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
Auto Trait Implementations
impl RefUnwindSafe for star
impl UnwindSafe for star
Blanket Implementations
Mutably borrows from an owned value. Read more
Convert self
to an expression for Diesel’s query builder. Read more
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression where
&'a Self: AsExpression<T>,
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression where
&'a Self: AsExpression<T>,
Convert &self
to an expression for Diesel’s query builder. Read more
fn is_not_distinct_from<T>(
self,
other: T
) -> IsNotDistinctFrom<Self, <T as AsExpression<Self::SqlType>>::Expression> where
T: AsExpression<Self::SqlType>,
fn is_not_distinct_from<T>(
self,
other: T
) -> IsNotDistinctFrom<Self, <T as AsExpression<Self::SqlType>>::Expression> where
T: AsExpression<Self::SqlType>,
Creates a PostgreSQL IS NOT DISTINCT FROM
expression. Read more
fn is_distinct_from<T>(
self,
other: T
) -> IsDistinctFrom<Self, <T as AsExpression<Self::SqlType>>::Expression> where
T: AsExpression<Self::SqlType>,
fn is_distinct_from<T>(
self,
other: T
) -> IsDistinctFrom<Self, <T as AsExpression<Self::SqlType>>::Expression> where
T: AsExpression<Self::SqlType>,
Creates a PostgreSQL IS DISTINCT FROM
expression. Read more