pub struct table;
Expand description
The actual table struct
This is the type which provides the base methods of the query
builder, such as .select
and .filter
.
Implementations§
Trait Implementations§
Source§impl<TSM> AppearsInFromClause<Tablesample<table, TSM>> for tablewhere
TSM: TablesampleMethod,
impl<TSM> AppearsInFromClause<Tablesample<table, TSM>> for tablewhere
TSM: TablesampleMethod,
Source§impl<TSM> AppearsInFromClause<table> for Tablesample<table, TSM>where
TSM: TablesampleMethod,
impl<TSM> AppearsInFromClause<table> for Tablesample<table, TSM>where
TSM: TablesampleMethod,
Source§impl<'a, T> Insertable<T> for &'a tablewhere
table: Insertable<T>,
impl<'a, T> Insertable<T> for &'a tablewhere
table: Insertable<T>,
Source§impl<T> Insertable<T> for tablewhere
<table as AsQuery>::Query: Insertable<T>,
impl<T> Insertable<T> for tablewhere
<table as AsQuery>::Query: Insertable<T>,
Source§impl<'insert> Insertable<table> for &'insert StoredEventStructName
impl<'insert> Insertable<table> for &'insert StoredEventStructName
Source§type Values = <(Option<Grouped<Eq<tx_sequence_number, <&'insert i64 as AsExpression<<tx_sequence_number as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<event_sequence_number, <&'insert i64 as AsExpression<<event_sequence_number as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<package, <&'insert Vec<u8> as AsExpression<<package as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<module, <&'insert String as AsExpression<<module as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<type_name, <&'insert String as AsExpression<<type_name as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<sender, <&'insert Vec<u8> as AsExpression<<sender as Expression>::SqlType>>::Expression>>>) as Insertable<table>>::Values
type Values = <(Option<Grouped<Eq<tx_sequence_number, <&'insert i64 as AsExpression<<tx_sequence_number as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<event_sequence_number, <&'insert i64 as AsExpression<<event_sequence_number as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<package, <&'insert Vec<u8> as AsExpression<<package as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<module, <&'insert String as AsExpression<<module as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<type_name, <&'insert String as AsExpression<<type_name as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<sender, <&'insert Vec<u8> as AsExpression<<sender as Expression>::SqlType>>::Expression>>>) as Insertable<table>>::Values
The
VALUES
clause to insert these records Read moreSource§fn values(
self,
) -> <(Option<Eq<tx_sequence_number, &'insert i64>>, Option<Eq<event_sequence_number, &'insert i64>>, Option<Eq<package, &'insert Vec<u8>>>, Option<Eq<module, &'insert String>>, Option<Eq<type_name, &'insert String>>, Option<Eq<sender, &'insert Vec<u8>>>) as Insertable<table>>::Values
fn values( self, ) -> <(Option<Eq<tx_sequence_number, &'insert i64>>, Option<Eq<event_sequence_number, &'insert i64>>, Option<Eq<package, &'insert Vec<u8>>>, Option<Eq<module, &'insert String>>, Option<Eq<type_name, &'insert String>>, Option<Eq<sender, &'insert Vec<u8>>>) as Insertable<table>>::Values
Construct
Self::Values
Read more§fn insert_into(self, table: T) -> InsertStatement<T, Self::Values>where
T: Table,
Self: Sized,
fn insert_into(self, table: T) -> InsertStatement<T, Self::Values>where
T: Table,
Self: Sized,
Insert
self
into a given table. Read moreSource§impl Insertable<table> for StoredEventStructName
impl Insertable<table> for StoredEventStructName
Source§type Values = <(Option<Grouped<Eq<tx_sequence_number, <i64 as AsExpression<<tx_sequence_number as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<event_sequence_number, <i64 as AsExpression<<event_sequence_number as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<package, <Vec<u8> as AsExpression<<package as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<module, <String as AsExpression<<module as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<type_name, <String as AsExpression<<type_name as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<sender, <Vec<u8> as AsExpression<<sender as Expression>::SqlType>>::Expression>>>) as Insertable<table>>::Values
type Values = <(Option<Grouped<Eq<tx_sequence_number, <i64 as AsExpression<<tx_sequence_number as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<event_sequence_number, <i64 as AsExpression<<event_sequence_number as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<package, <Vec<u8> as AsExpression<<package as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<module, <String as AsExpression<<module as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<type_name, <String as AsExpression<<type_name as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<sender, <Vec<u8> as AsExpression<<sender as Expression>::SqlType>>::Expression>>>) as Insertable<table>>::Values
The
VALUES
clause to insert these records Read moreSource§fn values(
self,
) -> <(Option<Eq<tx_sequence_number, i64>>, Option<Eq<event_sequence_number, i64>>, Option<Eq<package, Vec<u8>>>, Option<Eq<module, String>>, Option<Eq<type_name, String>>, Option<Eq<sender, Vec<u8>>>) as Insertable<table>>::Values
fn values( self, ) -> <(Option<Eq<tx_sequence_number, i64>>, Option<Eq<event_sequence_number, i64>>, Option<Eq<package, Vec<u8>>>, Option<Eq<module, String>>, Option<Eq<type_name, String>>, Option<Eq<sender, Vec<u8>>>) as Insertable<table>>::Values
Construct
Self::Values
Read more§fn insert_into(self, table: T) -> InsertStatement<T, Self::Values>where
T: Table,
Self: Sized,
fn insert_into(self, table: T) -> InsertStatement<T, Self::Values>where
T: Table,
Self: Sized,
Insert
self
into a given table. Read moreSource§impl IntoUpdateTarget for table
impl IntoUpdateTarget for table
Source§type WhereClause = <<table as AsQuery>::Query as IntoUpdateTarget>::WhereClause
type WhereClause = <<table as AsQuery>::Query as IntoUpdateTarget>::WhereClause
What is the
WHERE
clause of this target?Source§fn into_update_target(self) -> UpdateTarget<Self::Table, Self::WhereClause>
fn into_update_target(self) -> UpdateTarget<Self::Table, Self::WhereClause>
Decomposes
self
into the table and where clause.Source§impl<DB> QueryFragment<DB> for tablewhere
DB: Backend,
<table as StaticQueryFragment>::Component: QueryFragment<DB>,
impl<DB> QueryFragment<DB> for tablewhere
DB: Backend,
<table as StaticQueryFragment>::Component: QueryFragment<DB>,
Source§fn walk_ast<'b>(
&'b self,
__diesel_internal_pass: AstPass<'_, 'b, DB>,
) -> QueryResult<()>
fn walk_ast<'b>( &'b self, __diesel_internal_pass: AstPass<'_, 'b, DB>, ) -> QueryResult<()>
Walk over this
QueryFragment
for all passes. Read more§fn to_sql(
&self,
out: &mut <DB as Backend>::QueryBuilder,
backend: &DB,
) -> Result<(), Error>
fn to_sql( &self, out: &mut <DB as Backend>::QueryBuilder, backend: &DB, ) -> Result<(), Error>
Converts this
QueryFragment
to its SQL representation. Read more§fn collect_binds<'b>(
&'b self,
out: &mut <DB as Backend>::BindCollector<'b>,
metadata_lookup: &mut <DB as TypeMetadata>::MetadataLookup,
backend: &'b DB,
) -> Result<(), Error>
fn collect_binds<'b>( &'b self, out: &mut <DB as Backend>::BindCollector<'b>, metadata_lookup: &mut <DB as TypeMetadata>::MetadataLookup, backend: &'b DB, ) -> Result<(), Error>
Serializes all bind parameters in this query. Read more
Source§impl QueryId for table
impl QueryId for table
Source§const HAS_STATIC_QUERY_ID: bool = true
const HAS_STATIC_QUERY_ID: bool = true
Can the SQL generated by
Self
be uniquely identified by its type? Read moreSource§impl QuerySource for table
impl QuerySource for table
Source§type FromClause = StaticQueryFragmentInstance<table>
type FromClause = StaticQueryFragmentInstance<table>
The type returned by
from_clause
Source§type DefaultSelection = <table as Table>::AllColumns
type DefaultSelection = <table as Table>::AllColumns
The type returned by
default_selection
Source§fn from_clause(&self) -> Self::FromClause
fn from_clause(&self) -> Self::FromClause
The actual
FROM
clause of this type. This is typically only called in
QueryFragment
implementations.Source§fn default_selection(&self) -> Self::DefaultSelection
fn default_selection(&self) -> Self::DefaultSelection
The default select clause of this type, which should be used if no
select clause was explicitly specified. This should always be a tuple of
all the desired columns, not
star
Source§impl Table for table
impl Table for table
Source§type PrimaryKey = (package, module, type_name, tx_sequence_number, event_sequence_number)
type PrimaryKey = (package, module, type_name, tx_sequence_number, event_sequence_number)
The type returned by
primary_key
Source§type AllColumns = (package, module, type_name, tx_sequence_number, event_sequence_number, sender)
type AllColumns = (package, module, type_name, tx_sequence_number, event_sequence_number, sender)
The type returned by
all_columns
Source§fn primary_key(&self) -> Self::PrimaryKey
fn primary_key(&self) -> Self::PrimaryKey
Returns the primary key of this table. Read more
Source§fn all_columns() -> Self::AllColumns
fn all_columns() -> Self::AllColumns
Returns a tuple of all columns belonging to this table.
impl AppearsOnTable<table> for star
impl Copy for table
impl<S> JoinTo<Alias<S>> for tablewhere
Alias<S>: JoinTo<table>,
impl<Left, Right, Kind> JoinTo<Join<Left, Right, Kind>> for tablewhere
Join<Left, Right, Kind>: JoinTo<table>,
Left: QuerySource,
Right: QuerySource,
impl<S> JoinTo<Only<S>> for tablewhere
Only<S>: JoinTo<table>,
impl<S, TSM> JoinTo<Tablesample<S, TSM>> for tablewhere
Tablesample<S, TSM>: JoinTo<table>,
TSM: TablesampleMethod,
impl SelectableExpression<table> for event_sequence_number
impl SelectableExpression<table> for module
impl SelectableExpression<table> for package
impl SelectableExpression<table> for sender
impl SelectableExpression<table> for star
impl SelectableExpression<table> for tx_sequence_number
impl SelectableExpression<table> for type_name
impl TableNotEqual<Only<table>> for table
impl TableNotEqual<Only<table>> for table
impl TableNotEqual<Only<table>> for table
impl TableNotEqual<Only<table>> for table
impl TableNotEqual<Only<table>> for table
impl TableNotEqual<Only<table>> for table
impl TableNotEqual<Only<table>> for table
impl TableNotEqual<Only<table>> for table
impl TableNotEqual<Only<table>> for table
impl TableNotEqual<Only<table>> for table
impl TableNotEqual<Only<table>> for table
impl TableNotEqual<Only<table>> for table
impl TableNotEqual<Only<table>> for table
impl TableNotEqual<Only<table>> for table
impl TableNotEqual<Only<table>> for table
impl TableNotEqual<Only<table>> for table
impl TableNotEqual<Only<table>> for table
impl TableNotEqual<Only<table>> for table
impl TableNotEqual<Only<table>> for table
impl TableNotEqual<Only<table>> for table
impl TableNotEqual<Only<table>> for table
impl TableNotEqual<Only<table>> for table
impl TableNotEqual<Only<table>> for table
impl TableNotEqual<Only<table>> for table
impl TableNotEqual<Only<table>> for table
impl TableNotEqual<Only<table>> for table
impl TableNotEqual<Only<table>> for table
impl TableNotEqual<Only<table>> for table
impl TableNotEqual<Only<table>> for table
impl TableNotEqual<Only<table>> for table
impl TableNotEqual<Only<table>> for table
impl TableNotEqual<Only<table>> for table
impl<TSM> TableNotEqual<Tablesample<table, TSM>> for tablewhere
TSM: TablesampleMethod,
impl<TSM> TableNotEqual<Tablesample<table, TSM>> for tablewhere
TSM: TablesampleMethod,
impl<TSM> TableNotEqual<Tablesample<table, TSM>> for tablewhere
TSM: TablesampleMethod,
impl<TSM> TableNotEqual<Tablesample<table, TSM>> for tablewhere
TSM: TablesampleMethod,
impl<TSM> TableNotEqual<Tablesample<table, TSM>> for tablewhere
TSM: TablesampleMethod,
impl<TSM> TableNotEqual<Tablesample<table, TSM>> for tablewhere
TSM: TablesampleMethod,
impl<TSM> TableNotEqual<Tablesample<table, TSM>> for tablewhere
TSM: TablesampleMethod,
impl<TSM> TableNotEqual<Tablesample<table, TSM>> for tablewhere
TSM: TablesampleMethod,
impl<TSM> TableNotEqual<Tablesample<table, TSM>> for tablewhere
TSM: TablesampleMethod,
impl<TSM> TableNotEqual<Tablesample<table, TSM>> for tablewhere
TSM: TablesampleMethod,
impl<TSM> TableNotEqual<Tablesample<table, TSM>> for tablewhere
TSM: TablesampleMethod,
impl<TSM> TableNotEqual<Tablesample<table, TSM>> for tablewhere
TSM: TablesampleMethod,
impl<TSM> TableNotEqual<Tablesample<table, TSM>> for tablewhere
TSM: TablesampleMethod,
impl<TSM> TableNotEqual<Tablesample<table, TSM>> for tablewhere
TSM: TablesampleMethod,
impl<TSM> TableNotEqual<Tablesample<table, TSM>> for tablewhere
TSM: TablesampleMethod,
impl<TSM> TableNotEqual<Tablesample<table, TSM>> for tablewhere
TSM: TablesampleMethod,
impl<TSM> TableNotEqual<Tablesample<table, TSM>> for tablewhere
TSM: TablesampleMethod,
impl<TSM> TableNotEqual<Tablesample<table, TSM>> for tablewhere
TSM: TablesampleMethod,
impl<TSM> TableNotEqual<Tablesample<table, TSM>> for tablewhere
TSM: TablesampleMethod,
impl<TSM> TableNotEqual<Tablesample<table, TSM>> for tablewhere
TSM: TablesampleMethod,
impl<TSM> TableNotEqual<Tablesample<table, TSM>> for tablewhere
TSM: TablesampleMethod,
impl<TSM> TableNotEqual<Tablesample<table, TSM>> for tablewhere
TSM: TablesampleMethod,
impl<TSM> TableNotEqual<Tablesample<table, TSM>> for tablewhere
TSM: TablesampleMethod,
impl<TSM> TableNotEqual<Tablesample<table, TSM>> for tablewhere
TSM: TablesampleMethod,
impl<TSM> TableNotEqual<Tablesample<table, TSM>> for tablewhere
TSM: TablesampleMethod,
impl<TSM> TableNotEqual<Tablesample<table, TSM>> for tablewhere
TSM: TablesampleMethod,
impl<TSM> TableNotEqual<Tablesample<table, TSM>> for tablewhere
TSM: TablesampleMethod,
impl<TSM> TableNotEqual<Tablesample<table, TSM>> for tablewhere
TSM: TablesampleMethod,
impl<TSM> TableNotEqual<Tablesample<table, TSM>> for tablewhere
TSM: TablesampleMethod,
impl<TSM> TableNotEqual<Tablesample<table, TSM>> for tablewhere
TSM: TablesampleMethod,
impl<TSM> TableNotEqual<Tablesample<table, TSM>> for tablewhere
TSM: TablesampleMethod,
impl<TSM> TableNotEqual<Tablesample<table, TSM>> for tablewhere
TSM: TablesampleMethod,
impl TableNotEqual<table> for Only<table>
impl TableNotEqual<table> for Only<table>
impl TableNotEqual<table> for Only<table>
impl TableNotEqual<table> for Only<table>
impl TableNotEqual<table> for Only<table>
impl TableNotEqual<table> for Only<table>
impl TableNotEqual<table> for Only<table>
impl TableNotEqual<table> for Only<table>
impl TableNotEqual<table> for Only<table>
impl TableNotEqual<table> for Only<table>
impl TableNotEqual<table> for Only<table>
impl TableNotEqual<table> for Only<table>
impl TableNotEqual<table> for Only<table>
impl TableNotEqual<table> for Only<table>
impl TableNotEqual<table> for Only<table>
impl TableNotEqual<table> for Only<table>
impl TableNotEqual<table> for Only<table>
impl TableNotEqual<table> for Only<table>
impl TableNotEqual<table> for Only<table>
impl TableNotEqual<table> for Only<table>
impl TableNotEqual<table> for Only<table>
impl TableNotEqual<table> for Only<table>
impl TableNotEqual<table> for Only<table>
impl TableNotEqual<table> for Only<table>
impl TableNotEqual<table> for Only<table>
impl TableNotEqual<table> for Only<table>
impl TableNotEqual<table> for Only<table>
impl TableNotEqual<table> for Only<table>
impl TableNotEqual<table> for Only<table>
impl TableNotEqual<table> for Only<table>
impl TableNotEqual<table> for Only<table>
impl TableNotEqual<table> for Only<table>
impl<TSM> TableNotEqual<table> for Tablesample<table, TSM>where
TSM: TablesampleMethod,
impl<TSM> TableNotEqual<table> for Tablesample<table, TSM>where
TSM: TablesampleMethod,
impl<TSM> TableNotEqual<table> for Tablesample<table, TSM>where
TSM: TablesampleMethod,
impl<TSM> TableNotEqual<table> for Tablesample<table, TSM>where
TSM: TablesampleMethod,
impl<TSM> TableNotEqual<table> for Tablesample<table, TSM>where
TSM: TablesampleMethod,
impl<TSM> TableNotEqual<table> for Tablesample<table, TSM>where
TSM: TablesampleMethod,
impl<TSM> TableNotEqual<table> for Tablesample<table, TSM>where
TSM: TablesampleMethod,
impl<TSM> TableNotEqual<table> for Tablesample<table, TSM>where
TSM: TablesampleMethod,
impl<TSM> TableNotEqual<table> for Tablesample<table, TSM>where
TSM: TablesampleMethod,
impl<TSM> TableNotEqual<table> for Tablesample<table, TSM>where
TSM: TablesampleMethod,
impl<TSM> TableNotEqual<table> for Tablesample<table, TSM>where
TSM: TablesampleMethod,
impl<TSM> TableNotEqual<table> for Tablesample<table, TSM>where
TSM: TablesampleMethod,
impl<TSM> TableNotEqual<table> for Tablesample<table, TSM>where
TSM: TablesampleMethod,
impl<TSM> TableNotEqual<table> for Tablesample<table, TSM>where
TSM: TablesampleMethod,
impl<TSM> TableNotEqual<table> for Tablesample<table, TSM>where
TSM: TablesampleMethod,
impl<TSM> TableNotEqual<table> for Tablesample<table, TSM>where
TSM: TablesampleMethod,
impl<TSM> TableNotEqual<table> for Tablesample<table, TSM>where
TSM: TablesampleMethod,
impl<TSM> TableNotEqual<table> for Tablesample<table, TSM>where
TSM: TablesampleMethod,
impl<TSM> TableNotEqual<table> for Tablesample<table, TSM>where
TSM: TablesampleMethod,
impl<TSM> TableNotEqual<table> for Tablesample<table, TSM>where
TSM: TablesampleMethod,
impl<TSM> TableNotEqual<table> for Tablesample<table, TSM>where
TSM: TablesampleMethod,
impl<TSM> TableNotEqual<table> for Tablesample<table, TSM>where
TSM: TablesampleMethod,
impl<TSM> TableNotEqual<table> for Tablesample<table, TSM>where
TSM: TablesampleMethod,
impl<TSM> TableNotEqual<table> for Tablesample<table, TSM>where
TSM: TablesampleMethod,
impl<TSM> TableNotEqual<table> for Tablesample<table, TSM>where
TSM: TablesampleMethod,
impl<TSM> TableNotEqual<table> for Tablesample<table, TSM>where
TSM: TablesampleMethod,
impl<TSM> TableNotEqual<table> for Tablesample<table, TSM>where
TSM: TablesampleMethod,
impl<TSM> TableNotEqual<table> for Tablesample<table, TSM>where
TSM: TablesampleMethod,
impl<TSM> TableNotEqual<table> for Tablesample<table, TSM>where
TSM: TablesampleMethod,
impl<TSM> TableNotEqual<table> for Tablesample<table, TSM>where
TSM: TablesampleMethod,
impl<TSM> TableNotEqual<table> for Tablesample<table, TSM>where
TSM: TablesampleMethod,
impl<TSM> TableNotEqual<table> for Tablesample<table, TSM>where
TSM: TablesampleMethod,
impl TableNotEqual<table> for table
impl TableNotEqual<table> for table
impl TableNotEqual<table> for table
impl TableNotEqual<table> for table
impl TableNotEqual<table> for table
impl TableNotEqual<table> for table
impl TableNotEqual<table> for table
impl TableNotEqual<table> for table
impl TableNotEqual<table> for table
impl TableNotEqual<table> for table
impl TableNotEqual<table> for table
impl TableNotEqual<table> for table
impl TableNotEqual<table> for table
impl TableNotEqual<table> for table
impl TableNotEqual<table> for table
impl TableNotEqual<table> for table
impl TableNotEqual<table> for table
impl TableNotEqual<table> for table
impl TableNotEqual<table> for table
impl TableNotEqual<table> for table
impl TableNotEqual<table> for table
impl TableNotEqual<table> for table
impl TableNotEqual<table> for table
impl TableNotEqual<table> for table
impl TableNotEqual<table> for table
impl TableNotEqual<table> for table
impl TableNotEqual<table> for table
impl TableNotEqual<table> for table
impl TableNotEqual<table> for table
impl TableNotEqual<table> for table
impl TableNotEqual<table> for table
impl TableNotEqual<table> for table
impl TableNotEqual<table> for table
impl TableNotEqual<table> for table
impl TableNotEqual<table> for table
impl TableNotEqual<table> for table
impl TableNotEqual<table> for table
impl TableNotEqual<table> for table
impl TableNotEqual<table> for table
impl TableNotEqual<table> for table
impl TableNotEqual<table> for table
impl TableNotEqual<table> for table
impl TableNotEqual<table> for table
impl TableNotEqual<table> for table
impl TableNotEqual<table> for table
impl TableNotEqual<table> for table
impl TableNotEqual<table> for table
impl TableNotEqual<table> for table
impl TableNotEqual<table> for table
impl TableNotEqual<table> for table
impl TableNotEqual<table> for table
impl TableNotEqual<table> for table
impl TableNotEqual<table> for table
impl TableNotEqual<table> for table
impl TableNotEqual<table> for table
impl TableNotEqual<table> for table
impl TableNotEqual<table> for table
impl TableNotEqual<table> for table
impl TableNotEqual<table> for table
impl TableNotEqual<table> for table
impl TableNotEqual<table> for table
impl TableNotEqual<table> for table
impl TableNotEqual<table> for table
impl TableNotEqual<table> for table
impl UndecoratedInsertRecord<table> for StoredEventStructName
Auto Trait Implementations§
impl Freeze for table
impl RefUnwindSafe for table
impl Send for table
impl Sync for table
impl Unpin for table
impl UnwindSafe for table
Blanket Implementations§
§impl<T> AnySync for T
impl<T> AnySync for T
§impl<T1, T2> AppearsInFromClause<T2> for T1where
T1: TableNotEqual<T2> + Table,
T2: Table,
impl<T1, T2> AppearsInFromClause<T2> for T1where
T1: TableNotEqual<T2> + Table,
T2: Table,
§impl<U> As for U
impl<U> As for U
§fn as_<T>(self) -> Twhere
T: CastFrom<U>,
fn as_<T>(self) -> Twhere
T: CastFrom<U>,
Casts
self
to type T
. The semantics of numeric casting with the as
operator are followed, so <T as As>::as_::<U>
can be used in the same way as T as U
for numeric conversions. Read more§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> 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
§impl<'a, T, DB> BoxedDsl<'a, DB> for Twhere
T: Table<Query = SelectStatement<FromClause<T>>> + AsQuery,
SelectStatement<FromClause<T>>: BoxedDsl<'a, DB>,
<T as QuerySource>::DefaultSelection: Expression<SqlType = <T as AsQuery>::SqlType> + ValidGrouping<()>,
<T as AsQuery>::SqlType: TypedExpressionType,
impl<'a, T, DB> BoxedDsl<'a, DB> for Twhere
T: Table<Query = SelectStatement<FromClause<T>>> + AsQuery,
SelectStatement<FromClause<T>>: BoxedDsl<'a, DB>,
<T as QuerySource>::DefaultSelection: Expression<SqlType = <T as AsQuery>::SqlType> + ValidGrouping<()>,
<T as AsQuery>::SqlType: TypedExpressionType,
§type Output = <SelectStatement<FromClause<T>> as BoxedDsl<'a, DB>>::Output
type Output = <SelectStatement<FromClause<T>> as BoxedDsl<'a, DB>>::Output
The return type of
internal_into_boxed
§fn internal_into_boxed(self) -> <T as BoxedDsl<'a, DB>>::Output
fn internal_into_boxed(self) -> <T as BoxedDsl<'a, DB>>::Output
See the trait documentation.
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> CombineDsl for Twhere
T: Table,
impl<T> CombineDsl for Twhere
T: Table,
§fn union<Rhs>(
self,
rhs: Rhs,
) -> CombinationClause<Union, Distinct, <T as CombineDsl>::Query, <Rhs as AsQuery>::Query>where
Rhs: AsQuery<SqlType = <<T as CombineDsl>::Query as Query>::SqlType>,
fn union<Rhs>(
self,
rhs: Rhs,
) -> CombinationClause<Union, Distinct, <T as CombineDsl>::Query, <Rhs as AsQuery>::Query>where
Rhs: AsQuery<SqlType = <<T as CombineDsl>::Query as Query>::SqlType>,
Combine two queries using a SQL
UNION
Read more§fn union_all<Rhs>(
self,
rhs: Rhs,
) -> CombinationClause<Union, All, <T as CombineDsl>::Query, <Rhs as AsQuery>::Query>where
Rhs: AsQuery<SqlType = <<T as CombineDsl>::Query as Query>::SqlType>,
fn union_all<Rhs>(
self,
rhs: Rhs,
) -> CombinationClause<Union, All, <T as CombineDsl>::Query, <Rhs as AsQuery>::Query>where
Rhs: AsQuery<SqlType = <<T as CombineDsl>::Query as Query>::SqlType>,
Combine two queries using a SQL
UNION ALL
§fn intersect<Rhs>(
self,
rhs: Rhs,
) -> CombinationClause<Intersect, Distinct, <T as CombineDsl>::Query, <Rhs as AsQuery>::Query>where
Rhs: AsQuery<SqlType = <<T as CombineDsl>::Query as Query>::SqlType>,
fn intersect<Rhs>(
self,
rhs: Rhs,
) -> CombinationClause<Intersect, Distinct, <T as CombineDsl>::Query, <Rhs as AsQuery>::Query>where
Rhs: AsQuery<SqlType = <<T as CombineDsl>::Query as Query>::SqlType>,
Combine two queries using a SQL
INTERSECT
§fn intersect_all<Rhs>(
self,
rhs: Rhs,
) -> CombinationClause<Intersect, All, <T as CombineDsl>::Query, <Rhs as AsQuery>::Query>where
Rhs: AsQuery<SqlType = <<T as CombineDsl>::Query as Query>::SqlType>,
fn intersect_all<Rhs>(
self,
rhs: Rhs,
) -> CombinationClause<Intersect, All, <T as CombineDsl>::Query, <Rhs as AsQuery>::Query>where
Rhs: AsQuery<SqlType = <<T as CombineDsl>::Query as Query>::SqlType>,
Combine two queries using a SQL
INTERSECT ALL
§fn except<Rhs>(
self,
rhs: Rhs,
) -> CombinationClause<Except, Distinct, <T as CombineDsl>::Query, <Rhs as AsQuery>::Query>where
Rhs: AsQuery<SqlType = <<T as CombineDsl>::Query as Query>::SqlType>,
fn except<Rhs>(
self,
rhs: Rhs,
) -> CombinationClause<Except, Distinct, <T as CombineDsl>::Query, <Rhs as AsQuery>::Query>where
Rhs: AsQuery<SqlType = <<T as CombineDsl>::Query as Query>::SqlType>,
Combine two queries using a SQL
EXCEPT
§fn except_all<Rhs>(
self,
rhs: Rhs,
) -> CombinationClause<Except, All, <T as CombineDsl>::Query, <Rhs as AsQuery>::Query>where
Rhs: AsQuery<SqlType = <<T as CombineDsl>::Query as Query>::SqlType>,
fn except_all<Rhs>(
self,
rhs: Rhs,
) -> CombinationClause<Except, All, <T as CombineDsl>::Query, <Rhs as AsQuery>::Query>where
Rhs: AsQuery<SqlType = <<T as CombineDsl>::Query as Query>::SqlType>,
Combine two queries using a SQL
EXCEPT ALL
§impl<T> Conv for T
impl<T> Conv for T
§impl<T> CopyTarget for Twhere
T: Table + StaticQueryFragment,
<T as AsQuery>::SqlType: SqlType,
<T as Table>::AllColumns: ColumnList,
<T as StaticQueryFragment>::Component: QueryFragment<Pg>,
impl<T> CopyTarget for Twhere
T: Table + StaticQueryFragment,
<T as AsQuery>::SqlType: SqlType,
<T as Table>::AllColumns: ColumnList,
<T as StaticQueryFragment>::Component: QueryFragment<Pg>,
§impl<T> DistinctDsl for Twhere
T: AsQuery<Query = SelectStatement<FromClause<T>>> + Table,
<T as QuerySource>::DefaultSelection: Expression<SqlType = <T as AsQuery>::SqlType> + ValidGrouping<()>,
<T as AsQuery>::SqlType: TypedExpressionType,
impl<T> DistinctDsl for Twhere
T: AsQuery<Query = SelectStatement<FromClause<T>>> + Table,
<T as QuerySource>::DefaultSelection: Expression<SqlType = <T as AsQuery>::SqlType> + ValidGrouping<()>,
<T as AsQuery>::SqlType: TypedExpressionType,
§impl<T, Selection> DistinctOnDsl<Selection> for Twhere
Selection: SelectableExpression<T>,
T: Table<Query = SelectStatement<FromClause<T>>> + AsQuery,
SelectStatement<FromClause<T>>: DistinctOnDsl<Selection>,
<T as QuerySource>::DefaultSelection: Expression<SqlType = <T as AsQuery>::SqlType> + ValidGrouping<()>,
<T as AsQuery>::SqlType: TypedExpressionType,
impl<T, Selection> DistinctOnDsl<Selection> for Twhere
Selection: SelectableExpression<T>,
T: Table<Query = SelectStatement<FromClause<T>>> + AsQuery,
SelectStatement<FromClause<T>>: DistinctOnDsl<Selection>,
<T as QuerySource>::DefaultSelection: Expression<SqlType = <T as AsQuery>::SqlType> + ValidGrouping<()>,
<T as AsQuery>::SqlType: TypedExpressionType,
§type Output = <SelectStatement<FromClause<T>> as DistinctOnDsl<Selection>>::Output
type Output = <SelectStatement<FromClause<T>> as DistinctOnDsl<Selection>>::Output
The type returned by
.distinct_on
§fn distinct_on(
self,
selection: Selection,
) -> <T as DistinctOnDsl<Selection>>::Output
fn distinct_on( self, selection: Selection, ) -> <T as DistinctOnDsl<Selection>>::Output
See the trait documentation
§impl<Conn, DB, T> ExecuteDsl<Conn, DB> for Twhere
Conn: AsyncConnection<Backend = DB>,
DB: Backend,
T: QueryFragment<DB> + QueryId + Send,
impl<Conn, DB, T> ExecuteDsl<Conn, DB> for Twhere
Conn: AsyncConnection<Backend = DB>,
DB: Backend,
T: QueryFragment<DB> + QueryId + Send,
§fn execute<'conn, 'query>(
query: T,
conn: &'conn mut Conn,
) -> <Conn as AsyncConnection>::ExecuteFuture<'conn, 'query>where
T: 'query,
fn execute<'conn, 'query>(
query: T,
conn: &'conn mut Conn,
) -> <Conn as AsyncConnection>::ExecuteFuture<'conn, 'query>where
T: 'query,
Execute this command
§impl<Conn, DB, T> ExecuteDsl<Conn, DB> for Twhere
Conn: Connection<Backend = DB>,
DB: Backend,
T: QueryFragment<DB> + QueryId,
impl<Conn, DB, T> ExecuteDsl<Conn, DB> for Twhere
Conn: Connection<Backend = DB>,
DB: Backend,
T: QueryFragment<DB> + QueryId,
§impl<T> FmtForward for T
impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
Causes
self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
Causes
self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
Causes
self
to use its LowerExp
implementation when
Debug
-formatted.§fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
Causes
self
to use its LowerHex
implementation when
Debug
-formatted.§fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
Causes
self
to use its Octal
implementation when Debug
-formatted.§fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
Causes
self
to use its Pointer
implementation when
Debug
-formatted.§fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
Causes
self
to use its UpperExp
implementation when
Debug
-formatted.§fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
Causes
self
to use its UpperHex
implementation when
Debug
-formatted.§fn fmt_list(self) -> FmtList<Self>where
&'a Self: for<'a> IntoIterator,
fn fmt_list(self) -> FmtList<Self>where
&'a Self: for<'a> IntoIterator,
Formats each item in a sequence. Read more
§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a Request
§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request
§impl<T> IntoSql for T
impl<T> IntoSql for T
§impl<T> JoinOnDsl for Twhere
T: QuerySource,
impl<T> JoinOnDsl for Twhere
T: QuerySource,
§impl<Lhs, Rhs, On> JoinTo<OnClauseWrapper<Rhs, On>> for Lhswhere
Lhs: Table,
impl<Lhs, Rhs, On> JoinTo<OnClauseWrapper<Rhs, On>> for Lhswhere
Lhs: Table,
type FromClause = Rhs
type OnClause = On
fn join_target( rhs: OnClauseWrapper<Rhs, On>, ) -> (<Lhs as JoinTo<OnClauseWrapper<Rhs, On>>>::FromClause, <Lhs as JoinTo<OnClauseWrapper<Rhs, On>>>::OnClause)
§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Applies the layer to a service and wraps it in [
Layered
].§impl<T> LimitDsl for Twhere
T: Table,
<T as AsQuery>::Query: LimitDsl,
impl<T> LimitDsl for Twhere
T: Table,
<T as AsQuery>::Query: LimitDsl,
§impl<T, Lock> LockingDsl<Lock> for Twhere
T: Table<Query = SelectStatement<FromClause<T>>> + AsQuery,
<T as QuerySource>::DefaultSelection: Expression<SqlType = <T as AsQuery>::SqlType> + ValidGrouping<()>,
<T as AsQuery>::SqlType: TypedExpressionType,
impl<T, Lock> LockingDsl<Lock> for Twhere
T: Table<Query = SelectStatement<FromClause<T>>> + AsQuery,
<T as QuerySource>::DefaultSelection: Expression<SqlType = <T as AsQuery>::SqlType> + ValidGrouping<()>,
<T as AsQuery>::SqlType: TypedExpressionType,
§type Output = <SelectStatement<FromClause<T>> as LockingDsl<Lock>>::Output
type Output = <SelectStatement<FromClause<T>> as LockingDsl<Lock>>::Output
The type returned by
set_lock
. See dsl::ForUpdate
and friends for
convenient access to this type.§impl<T> OffsetDsl for Twhere
T: Table,
<T as AsQuery>::Query: OffsetDsl,
impl<T> OffsetDsl for Twhere
T: Table,
<T as AsQuery>::Query: OffsetDsl,
§impl<T> Pipe for Twhere
T: ?Sized,
impl<T> Pipe for Twhere
T: ?Sized,
§fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
Pipes by value. This is generally the method you want to use. Read more
§fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
Borrows
self
and passes that borrow into the pipe function. Read more§fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
Mutably borrows
self
and passes that borrow into the pipe function. Read more§fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
§fn pipe_borrow_mut<'a, B, R>(
&'a mut self,
func: impl FnOnce(&'a mut B) -> R,
) -> R
fn pipe_borrow_mut<'a, B, R>( &'a mut self, func: impl FnOnce(&'a mut B) -> R, ) -> R
§fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
Borrows
self
, then passes self.as_ref()
into the pipe function.§fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
Mutably borrows
self
, then passes self.as_mut()
into the pipe
function.§fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
Borrows
self
, then passes self.deref()
into the pipe function.§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
§impl<T> QueryDsl for Twhere
T: Table,
impl<T> QueryDsl for Twhere
T: Table,
§fn distinct(self) -> Self::Outputwhere
Self: DistinctDsl,
fn distinct(self) -> Self::Outputwhere
Self: DistinctDsl,
Adds the
DISTINCT
keyword to a query. Read more§fn distinct_on<Expr>(self, expr: Expr) -> Self::Outputwhere
Self: DistinctOnDsl<Expr>,
fn distinct_on<Expr>(self, expr: Expr) -> Self::Outputwhere
Self: DistinctOnDsl<Expr>,
Adds the
DISTINCT ON
clause to a query. Read more§fn select<Selection>(self, selection: Selection) -> Self::Outputwhere
Selection: Expression,
Self: SelectDsl<Selection>,
fn select<Selection>(self, selection: Selection) -> Self::Outputwhere
Selection: Expression,
Self: SelectDsl<Selection>,
Adds a
SELECT
clause to the query. Read more§fn count(self) -> Self::Outputwhere
Self: SelectDsl<CountStar>,
fn count(self) -> Self::Outputwhere
Self: SelectDsl<CountStar>,
Get the count of a query. This is equivalent to
.select(count_star())
Read more§fn inner_join<Rhs>(self, rhs: Rhs) -> Self::Outputwhere
Self: JoinWithImplicitOnClause<Rhs, Inner>,
fn inner_join<Rhs>(self, rhs: Rhs) -> Self::Outputwhere
Self: JoinWithImplicitOnClause<Rhs, Inner>,
Join two tables using a SQL
INNER JOIN
. Read more§fn left_outer_join<Rhs>(self, rhs: Rhs) -> Self::Outputwhere
Self: JoinWithImplicitOnClause<Rhs, LeftOuter>,
fn left_outer_join<Rhs>(self, rhs: Rhs) -> Self::Outputwhere
Self: JoinWithImplicitOnClause<Rhs, LeftOuter>,
Join two tables using a SQL
LEFT OUTER JOIN
. Read more§fn left_join<Rhs>(self, rhs: Rhs) -> Self::Outputwhere
Self: JoinWithImplicitOnClause<Rhs, LeftOuter>,
fn left_join<Rhs>(self, rhs: Rhs) -> Self::Outputwhere
Self: JoinWithImplicitOnClause<Rhs, LeftOuter>,
Alias for
left_outer_join
.§fn filter<Predicate>(self, predicate: Predicate) -> Self::Outputwhere
Self: FilterDsl<Predicate>,
fn filter<Predicate>(self, predicate: Predicate) -> Self::Outputwhere
Self: FilterDsl<Predicate>,
Adds to the
WHERE
clause of a query. Read more§fn or_filter<Predicate>(self, predicate: Predicate) -> Self::Outputwhere
Self: OrFilterDsl<Predicate>,
fn or_filter<Predicate>(self, predicate: Predicate) -> Self::Outputwhere
Self: OrFilterDsl<Predicate>,
§fn find<PK>(self, id: PK) -> Self::Outputwhere
Self: FindDsl<PK>,
fn find<PK>(self, id: PK) -> Self::Outputwhere
Self: FindDsl<PK>,
Attempts to find a single record from the given table by primary key. Read more
§fn order<Expr>(self, expr: Expr) -> Self::Outputwhere
Expr: Expression,
Self: OrderDsl<Expr>,
fn order<Expr>(self, expr: Expr) -> Self::Outputwhere
Expr: Expression,
Self: OrderDsl<Expr>,
Sets the order clause of a query. Read more
§fn order_by<Expr>(self, expr: Expr) -> Self::Outputwhere
Expr: Expression,
Self: OrderDsl<Expr>,
fn order_by<Expr>(self, expr: Expr) -> Self::Outputwhere
Expr: Expression,
Self: OrderDsl<Expr>,
Alias for
order
§fn then_order_by<Order>(self, order: Order) -> Self::Outputwhere
Self: ThenOrderDsl<Order>,
fn then_order_by<Order>(self, order: Order) -> Self::Outputwhere
Self: ThenOrderDsl<Order>,
Appends to the
ORDER BY
clause of this SQL query. Read more§fn limit(self, limit: i64) -> Self::Outputwhere
Self: LimitDsl,
fn limit(self, limit: i64) -> Self::Outputwhere
Self: LimitDsl,
Sets the limit clause of the query. Read more
§fn offset(self, offset: i64) -> Self::Outputwhere
Self: OffsetDsl,
fn offset(self, offset: i64) -> Self::Outputwhere
Self: OffsetDsl,
Sets the offset clause of the query. Read more
§fn group_by<GB>(self, group_by: GB) -> Self::Outputwhere
GB: Expression,
Self: GroupByDsl<GB>,
fn group_by<GB>(self, group_by: GB) -> Self::Outputwhere
GB: Expression,
Self: GroupByDsl<GB>,
Sets the
group by
clause of a query. Read more§fn having<Predicate>(self, predicate: Predicate) -> Self::Outputwhere
Self: HavingDsl<Predicate>,
fn having<Predicate>(self, predicate: Predicate) -> Self::Outputwhere
Self: HavingDsl<Predicate>,
Adds to the
HAVING
clause of a query. Read more§fn for_update(self) -> Self::Outputwhere
Self: LockingDsl<ForUpdate>,
fn for_update(self) -> Self::Outputwhere
Self: LockingDsl<ForUpdate>,
Adds
FOR UPDATE
to the end of the select statement. Read more§fn for_no_key_update(self) -> Self::Outputwhere
Self: LockingDsl<ForNoKeyUpdate>,
fn for_no_key_update(self) -> Self::Outputwhere
Self: LockingDsl<ForNoKeyUpdate>,
Adds
FOR NO KEY UPDATE
to the end of the select statement. Read moreAdds
FOR SHARE
to the end of the select statement. Read moreAdds
FOR KEY SHARE
to the end of the select statement. Read more§fn skip_locked(self) -> Self::Outputwhere
Self: ModifyLockDsl<SkipLocked>,
fn skip_locked(self) -> Self::Outputwhere
Self: ModifyLockDsl<SkipLocked>,
§fn into_boxed<'a, DB>(self) -> Self::Outputwhere
DB: Backend,
Self: BoxedDsl<'a, DB>,
fn into_boxed<'a, DB>(self) -> Self::Outputwhere
DB: Backend,
Self: BoxedDsl<'a, DB>,
Boxes the pieces of a query into a single type. Read more
§fn single_value(self) -> Self::Outputwhere
Self: SingleValueDsl,
fn single_value(self) -> Self::Outputwhere
Self: SingleValueDsl,
Wraps this select statement in parenthesis, allowing it to be used
as an expression. Read more
§impl<T, DB> QueryFragmentForCachedStatement<DB> for Twhere
DB: Backend,
<DB as Backend>::QueryBuilder: Default,
T: QueryFragment<DB>,
impl<T, DB> QueryFragmentForCachedStatement<DB> for Twhere
DB: Backend,
<DB as Backend>::QueryBuilder: Default,
T: QueryFragment<DB>,
§fn construct_sql(&self, backend: &DB) -> Result<String, Error>
fn construct_sql(&self, backend: &DB) -> Result<String, Error>
Convert the query fragment into a SQL string for the given backend
§fn is_safe_to_cache_prepared(&self, backend: &DB) -> Result<bool, Error>
fn is_safe_to_cache_prepared(&self, backend: &DB) -> Result<bool, Error>
Check whether it’s safe to cache the query
§impl<T, Conn> RunQueryDsl<Conn> for T
impl<T, Conn> RunQueryDsl<Conn> for T
§fn execute<'conn, 'query>(
self,
conn: &'conn mut Conn,
) -> <Conn as AsyncConnection>::ExecuteFuture<'conn, 'query>where
Conn: AsyncConnection + Send,
Self: ExecuteDsl<Conn> + 'query,
fn execute<'conn, 'query>(
self,
conn: &'conn mut Conn,
) -> <Conn as AsyncConnection>::ExecuteFuture<'conn, 'query>where
Conn: AsyncConnection + Send,
Self: ExecuteDsl<Conn> + 'query,
Executes the given command, returning the number of rows affected. Read more
§fn load<'query, 'conn, U>(
self,
conn: &'conn mut Conn,
) -> AndThen<Self::LoadFuture<'conn>, TryCollect<Self::Stream<'conn>, Vec<U>>, fn(_: Self::Stream<'conn>) -> TryCollect<Self::Stream<'conn>, Vec<U>>>where
U: Send,
Conn: AsyncConnection,
Self: LoadQuery<'query, Conn, U> + 'query,
fn load<'query, 'conn, U>(
self,
conn: &'conn mut Conn,
) -> AndThen<Self::LoadFuture<'conn>, TryCollect<Self::Stream<'conn>, Vec<U>>, fn(_: Self::Stream<'conn>) -> TryCollect<Self::Stream<'conn>, Vec<U>>>where
U: Send,
Conn: AsyncConnection,
Self: LoadQuery<'query, Conn, U> + 'query,
§fn load_stream<'conn, 'query, U>(
self,
conn: &'conn mut Conn,
) -> Self::LoadFuture<'conn>where
Conn: AsyncConnection,
U: 'conn,
Self: LoadQuery<'query, Conn, U> + 'query,
fn load_stream<'conn, 'query, U>(
self,
conn: &'conn mut Conn,
) -> Self::LoadFuture<'conn>where
Conn: AsyncConnection,
U: 'conn,
Self: LoadQuery<'query, Conn, U> + 'query,
Executes the given query, returning a [
Stream
] with the returned rows. Read more§fn get_result<'query, 'conn, U>(
self,
conn: &'conn mut Conn,
) -> AndThen<Self::LoadFuture<'conn>, Map<StreamFuture<Pin<Box<Self::Stream<'conn>>>>, fn(_: (Option<Result<U, Error>>, Pin<Box<Self::Stream<'conn>>>)) -> Result<U, Error>>, fn(_: Self::Stream<'conn>) -> Map<StreamFuture<Pin<Box<Self::Stream<'conn>>>>, fn(_: (Option<Result<U, Error>>, Pin<Box<Self::Stream<'conn>>>)) -> Result<U, Error>>>where
U: Send + 'conn,
Conn: AsyncConnection,
Self: LoadQuery<'query, Conn, U> + 'query,
fn get_result<'query, 'conn, U>(
self,
conn: &'conn mut Conn,
) -> AndThen<Self::LoadFuture<'conn>, Map<StreamFuture<Pin<Box<Self::Stream<'conn>>>>, fn(_: (Option<Result<U, Error>>, Pin<Box<Self::Stream<'conn>>>)) -> Result<U, Error>>, fn(_: Self::Stream<'conn>) -> Map<StreamFuture<Pin<Box<Self::Stream<'conn>>>>, fn(_: (Option<Result<U, Error>>, Pin<Box<Self::Stream<'conn>>>)) -> Result<U, Error>>>where
U: Send + 'conn,
Conn: AsyncConnection,
Self: LoadQuery<'query, Conn, U> + 'query,
Runs the command, and returns the affected row. Read more
§fn get_results<'query, 'conn, U>(
self,
conn: &'conn mut Conn,
) -> AndThen<Self::LoadFuture<'conn>, TryCollect<Self::Stream<'conn>, Vec<U>>, fn(_: Self::Stream<'conn>) -> TryCollect<Self::Stream<'conn>, Vec<U>>>where
U: Send,
Conn: AsyncConnection,
Self: LoadQuery<'query, Conn, U> + 'query,
fn get_results<'query, 'conn, U>(
self,
conn: &'conn mut Conn,
) -> AndThen<Self::LoadFuture<'conn>, TryCollect<Self::Stream<'conn>, Vec<U>>, fn(_: Self::Stream<'conn>) -> TryCollect<Self::Stream<'conn>, Vec<U>>>where
U: Send,
Conn: AsyncConnection,
Self: LoadQuery<'query, Conn, U> + 'query,
Runs the command, returning an
Vec
with the affected rows. Read more§fn first<'query, 'conn, U>(
self,
conn: &'conn mut Conn,
) -> AndThen<<Self::Output as LoadQuery<'query, Conn, U>>::LoadFuture<'conn>, Map<StreamFuture<Pin<Box<<Self::Output as LoadQuery<'query, Conn, U>>::Stream<'conn>>>>, fn(_: (Option<Result<U, Error>>, Pin<Box<<Self::Output as LoadQuery<'query, Conn, U>>::Stream<'conn>>>)) -> Result<U, Error>>, fn(_: <Self::Output as LoadQuery<'query, Conn, U>>::Stream<'conn>) -> Map<StreamFuture<Pin<Box<<Self::Output as LoadQuery<'query, Conn, U>>::Stream<'conn>>>>, fn(_: (Option<Result<U, Error>>, Pin<Box<<Self::Output as LoadQuery<'query, Conn, U>>::Stream<'conn>>>)) -> Result<U, Error>>>
fn first<'query, 'conn, U>( self, conn: &'conn mut Conn, ) -> AndThen<<Self::Output as LoadQuery<'query, Conn, U>>::LoadFuture<'conn>, Map<StreamFuture<Pin<Box<<Self::Output as LoadQuery<'query, Conn, U>>::Stream<'conn>>>>, fn(_: (Option<Result<U, Error>>, Pin<Box<<Self::Output as LoadQuery<'query, Conn, U>>::Stream<'conn>>>)) -> Result<U, Error>>, fn(_: <Self::Output as LoadQuery<'query, Conn, U>>::Stream<'conn>) -> Map<StreamFuture<Pin<Box<<Self::Output as LoadQuery<'query, Conn, U>>::Stream<'conn>>>>, fn(_: (Option<Result<U, Error>>, Pin<Box<<Self::Output as LoadQuery<'query, Conn, U>>::Stream<'conn>>>)) -> Result<U, Error>>>
Attempts to load a single record. Read more
§impl<T, Conn> RunQueryDsl<Conn> for Twhere
T: Table,
impl<T, Conn> RunQueryDsl<Conn> for Twhere
T: Table,
§fn execute(self, conn: &mut Conn) -> Result<usize, Error>where
Conn: Connection,
Self: ExecuteDsl<Conn>,
fn execute(self, conn: &mut Conn) -> Result<usize, Error>where
Conn: Connection,
Self: ExecuteDsl<Conn>,
Executes the given command, returning the number of rows affected. Read more
§fn load<'query, U>(self, conn: &mut Conn) -> Result<Vec<U>, Error>where
Self: LoadQuery<'query, Conn, U>,
fn load<'query, U>(self, conn: &mut Conn) -> Result<Vec<U>, Error>where
Self: LoadQuery<'query, Conn, U>,
§fn load_iter<'conn, 'query, U, B>(
self,
conn: &'conn mut Conn,
) -> Result<Self::RowIter<'conn>, Error>where
'query: 'conn,
U: 'conn,
Self: LoadQuery<'query, Conn, U, B> + 'conn,
fn load_iter<'conn, 'query, U, B>(
self,
conn: &'conn mut Conn,
) -> Result<Self::RowIter<'conn>, Error>where
'query: 'conn,
U: 'conn,
Self: LoadQuery<'query, Conn, U, B> + 'conn,
§fn get_result<'query, U>(self, conn: &mut Conn) -> Result<U, Error>where
Self: LoadQuery<'query, Conn, U>,
fn get_result<'query, U>(self, conn: &mut Conn) -> Result<U, Error>where
Self: LoadQuery<'query, Conn, U>,
Runs the command, and returns the affected row. Read more
§impl<T> TablesampleDsl for Twhere
T: Table,
impl<T> TablesampleDsl for Twhere
T: Table,
§fn tablesample_bernoulli(
self,
portion: i16,
) -> Tablesample<Self, BernoulliMethod>
fn tablesample_bernoulli( self, portion: i16, ) -> Tablesample<Self, BernoulliMethod>
See the trait-level docs.
§fn tablesample_system(self, portion: i16) -> Tablesample<Self, SystemMethod>
fn tablesample_system(self, portion: i16) -> Tablesample<Self, SystemMethod>
See the trait-level docs.
§impl<T> Tap for T
impl<T> Tap for T
§fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
Immutable access to the
Borrow<B>
of a value. Read more§fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
Mutable access to the
BorrowMut<B>
of a value. Read more§fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
Immutable access to the
AsRef<R>
view of a value. Read more§fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
Mutable access to the
AsMut<R>
view of a value. Read more§fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
Immutable access to the
Deref::Target
of a value. Read more§fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
Mutable access to the
Deref::Target
of a value. Read more§fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
Calls
.tap()
only in debug builds, and is erased in release builds.§fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
Calls
.tap_mut()
only in debug builds, and is erased in release
builds.§fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
Calls
.tap_borrow()
only in debug builds, and is erased in release
builds.§fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
Calls
.tap_borrow_mut()
only in debug builds, and is erased in release
builds.§fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
Calls
.tap_ref()
only in debug builds, and is erased in release
builds.§fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
Calls
.tap_ref_mut()
only in debug builds, and is erased in release
builds.§fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
Calls
.tap_deref()
only in debug builds, and is erased in release
builds.