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
sourceimpl<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>,
sourcefn walk_ast(&self, out: AstPass<'_, DB>) -> QueryResult<()>
fn walk_ast(&self, out: AstPass<'_, DB>) -> QueryResult<()>
Walk over this QueryFragment
for all passes. Read more
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 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
fn is_safe_to_cache_prepared(&self) -> Result<bool, Error>
fn is_safe_to_cache_prepared(&self) -> Result<bool, Error>
Is this query safe to store in the prepared statement cache? 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more