Skip to main content

table

Struct table 

Source
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§

Source§

impl table

Source

pub fn star(&self) -> star

Represents table_name.*, which is sometimes necessary for efficient count queries. It cannot be used in place of all_columns

Trait Implementations§

Source§

impl<S1, S2> AliasAliasAppearsInFromClause<table, S2, S1> for table
where S1: AliasSource<Target = table> + AliasAliasAppearsInFromClauseSameTable<S2, table>, S2: AliasSource<Target = table>,

Source§

type Count = <S1 as AliasAliasAppearsInFromClauseSameTable<S2, table>>::Count

Will be passed on to the impl AppearsInFromClause<QS>
Source§

impl<S> AliasAppearsInFromClause<S, table> for table
where S: AliasSource<Target = table>,

Source§

type Count = Never

Will be passed on to the impl AppearsInFromClause<QS>
Source§

impl<S> AppearsInFromClause<Alias<S>> for table
where S: AliasSource,

Source§

type Count = Never

How many times does Self appear in QS?
Source§

impl AppearsInFromClause<Only<table>> for table

Source§

type Count = Once

How many times does Self appear in QS?
Source§

impl<TSM> AppearsInFromClause<Tablesample<table, TSM>> for table
where TSM: TablesampleMethod,

Source§

type Count = Once

How many times does Self appear in QS?
Source§

impl AppearsInFromClause<table> for table

Source§

type Count = Once

How many times does Self appear in QS?
Source§

impl AppearsInFromClause<table> for NoFromClause

Source§

type Count = Never

How many times does Self appear in QS?
Source§

impl AppearsInFromClause<table> for Only<table>

Source§

type Count = Once

How many times does Self appear in QS?
Source§

impl<TSM> AppearsInFromClause<table> for Tablesample<table, TSM>
where TSM: TablesampleMethod,

Source§

type Count = Once

How many times does Self appear in QS?
Source§

impl AppearsOnTable<table> for star

Source§

impl AsQuery for table

Source§

type SqlType = (Integer, Text, Text, Bool, Text, Nullable<Integer>, Nullable<Jsonb>, Uuid)

The SQL type of Self::Query
Source§

type Query = SelectStatement<FromClause<table>>

What kind of query does this type represent?
Source§

fn as_query(self) -> Self::Query

Converts a type which semantically represents a SQL query into the actual query being executed. See the trait level docs for more.
Source§

impl Clone for table

Source§

fn clone(&self) -> table

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for table

Source§

impl Debug for table

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for table

Source§

fn default() -> table

Returns the “default value” for a type. Read more
Source§

impl HasTable for table

Source§

type Table = table

The table this type is associated with.
Source§

fn table() -> Self::Table

Returns the table this type is associated with.
Source§

impl<T> Insertable<T> for table
where <table as AsQuery>::Query: Insertable<T>,

Source§

type Values = <<table as AsQuery>::Query as Insertable<T>>::Values

The VALUES clause to insert these records Read more
Source§

fn values(self) -> Self::Values

Construct Self::Values Read more
§

fn insert_into(self, table: T) -> InsertStatement<T, Self::Values>
where T: Table, Self: Sized,

Insert self into a given table. Read more
Source§

impl<'a, T> Insertable<T> for &'a table
where table: Insertable<T>,

Source§

type Values = <table as Insertable<T>>::Values

The VALUES clause to insert these records Read more
Source§

fn values(self) -> Self::Values

Construct Self::Values Read more
§

fn insert_into(self, table: T) -> InsertStatement<T, Self::Values>
where T: Table, Self: Sized,

Insert self into a given table. Read more
Source§

impl Insertable<table> for NewCorpus
where String: AsExpression<<path as Expression>::SqlType> + AsExpression<<name as Expression>::SqlType> + AsExpression<<description as Expression>::SqlType>, bool: AsExpression<<complex as Expression>::SqlType>,

Source§

type Values = <(Option<Grouped<Eq<path, <String as AsExpression<<path as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<name, <String as AsExpression<<name as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<complex, <bool as AsExpression<<complex as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<description, <String as AsExpression<<description as Expression>::SqlType>>::Expression>>>) as Insertable<table>>::Values

The VALUES clause to insert these records Read more
Source§

fn values( self, ) -> <(Option<Eq<path, String>>, Option<Eq<name, String>>, Option<Eq<complex, bool>>, Option<Eq<description, String>>) as Insertable<table>>::Values

Construct Self::Values Read more
§

fn insert_into(self, table: T) -> InsertStatement<T, Self::Values>
where T: Table, Self: Sized,

Insert self into a given table. Read more
Source§

impl<'insert> Insertable<table> for &'insert NewCorpus
where &'insert String: AsExpression<<path as Expression>::SqlType> + AsExpression<<name as Expression>::SqlType> + AsExpression<<description as Expression>::SqlType>, &'insert bool: AsExpression<<complex as Expression>::SqlType>,

Source§

type Values = <(Option<Grouped<Eq<path, <&'insert String as AsExpression<<path as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<name, <&'insert String as AsExpression<<name as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<complex, <&'insert bool as AsExpression<<complex as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<description, <&'insert String as AsExpression<<description as Expression>::SqlType>>::Expression>>>) as Insertable<table>>::Values

The VALUES clause to insert these records Read more
Source§

fn values( self, ) -> <(Option<Eq<path, &'insert String>>, Option<Eq<name, &'insert String>>, Option<Eq<complex, &'insert bool>>, Option<Eq<description, &'insert String>>) as Insertable<table>>::Values

Construct Self::Values Read more
§

fn insert_into(self, table: T) -> InsertStatement<T, Self::Values>
where T: Table, Self: Sized,

Insert self into a given table. Read more
Source§

impl Insertable<table> for NewSandboxCorpus
where String: AsExpression<<path as Expression>::SqlType> + AsExpression<<name as Expression>::SqlType> + AsExpression<<description as Expression>::SqlType>, bool: AsExpression<<complex as Expression>::SqlType>, i32: AsExpression<<parent_corpus_id as Expression>::SqlType>, Value: AsExpression<<selection as Expression>::SqlType>,

Source§

type Values = <(Option<Grouped<Eq<path, <String as AsExpression<<path as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<name, <String as AsExpression<<name as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<complex, <bool as AsExpression<<complex as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<description, <String as AsExpression<<description as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<parent_corpus_id, <i32 as AsExpression<<parent_corpus_id as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<selection, <Value as AsExpression<<selection as Expression>::SqlType>>::Expression>>>) as Insertable<table>>::Values

The VALUES clause to insert these records Read more
Source§

fn values( self, ) -> <(Option<Eq<path, String>>, Option<Eq<name, String>>, Option<Eq<complex, bool>>, Option<Eq<description, String>>, Option<Eq<parent_corpus_id, i32>>, Option<Eq<selection, Value>>) as Insertable<table>>::Values

Construct Self::Values Read more
§

fn insert_into(self, table: T) -> InsertStatement<T, Self::Values>
where T: Table, Self: Sized,

Insert self into a given table. Read more
Source§

impl<'insert> Insertable<table> for &'insert NewSandboxCorpus
where &'insert String: AsExpression<<path as Expression>::SqlType> + AsExpression<<name as Expression>::SqlType> + AsExpression<<description as Expression>::SqlType>, &'insert bool: AsExpression<<complex as Expression>::SqlType>, &'insert i32: AsExpression<<parent_corpus_id as Expression>::SqlType>, &'insert Value: AsExpression<<selection as Expression>::SqlType>,

Source§

type Values = <(Option<Grouped<Eq<path, <&'insert String as AsExpression<<path as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<name, <&'insert String as AsExpression<<name as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<complex, <&'insert bool as AsExpression<<complex as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<description, <&'insert String as AsExpression<<description as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<parent_corpus_id, <&'insert i32 as AsExpression<<parent_corpus_id as Expression>::SqlType>>::Expression>>>, Option<Grouped<Eq<selection, <&'insert Value as AsExpression<<selection as Expression>::SqlType>>::Expression>>>) as Insertable<table>>::Values

The VALUES clause to insert these records Read more
Source§

fn values( self, ) -> <(Option<Eq<path, &'insert String>>, Option<Eq<name, &'insert String>>, Option<Eq<complex, &'insert bool>>, Option<Eq<description, &'insert String>>, Option<Eq<parent_corpus_id, &'insert i32>>, Option<Eq<selection, &'insert Value>>) as Insertable<table>>::Values

Construct Self::Values Read more
§

fn insert_into(self, table: T) -> InsertStatement<T, Self::Values>
where T: Table, Self: Sized,

Insert self into a given table. Read more
Source§

impl IntoUpdateTarget for table

Source§

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>

Decomposes self into the table and where clause.
Source§

impl<S> JoinTo<Alias<S>> for table
where Alias<S>: JoinTo<table>,

Source§

impl<Left, Right, Kind> JoinTo<Join<Left, Right, Kind>> for table
where Join<Left, Right, Kind>: JoinTo<table>, Left: QuerySource, Right: QuerySource,

Source§

impl<S> JoinTo<Only<S>> for table
where Only<S>: JoinTo<table>,

Source§

impl<S, TSM> JoinTo<Tablesample<S, TSM>> for table
where Tablesample<S, TSM>: JoinTo<table>, TSM: TablesampleMethod,

Source§

impl JoinTo<table> for table

Source§

impl JoinTo<table> for table

Source§

impl<DB> QueryFragment<DB> for table
where DB: Backend, <table as StaticQueryFragment>::Component: QueryFragment<DB>,

Source§

fn walk_ast<'b>( &'b self, __diesel_internal_pass: AstPass<'_, 'b, DB>, ) -> QueryResult<()>

Walk over this QueryFragment for all passes. Read more
Source§

impl QueryId for table

Source§

const HAS_STATIC_QUERY_ID: bool = true

Can the SQL generated by Self be uniquely identified by its type? Read more
Source§

type QueryId = table

A type which uniquely represents Self in a SQL query. Read more
§

fn query_id() -> Option<TypeId>

Returns the type id of Self::QueryId if Self::HAS_STATIC_QUERY_ID. Returns None otherwise. Read more
Source§

impl QuerySource for table

Source§

type FromClause = StaticQueryFragmentInstance<table>

The type returned by from_clause
Source§

type DefaultSelection = <table as Table>::AllColumns

The type returned by default_selection
Source§

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

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 SelectableExpression<table> for star

Source§

impl SelectableExpression<table> for id

Source§

impl SelectableExpression<table> for path

Source§

impl SelectableExpression<table> for name

Source§

impl SelectableExpression<table> for complex

Source§

impl SelectableExpression<table> for description

Source§

impl SelectableExpression<table> for parent_corpus_id

Source§

impl SelectableExpression<table> for selection

Source§

impl SelectableExpression<table> for public_id

Source§

impl Table for table

Source§

type PrimaryKey = id

The type returned by primary_key
Source§

type AllColumns = (id, path, name, complex, description, parent_corpus_id, selection, public_id)

The type returned by all_columns
Source§

fn primary_key(&self) -> Self::PrimaryKey

Returns the primary key of this table. Read more
Source§

fn all_columns() -> Self::AllColumns

Returns a tuple of all columns belonging to this table.
Source§

impl TableNotEqual<Only<table>> for table

Source§

impl TableNotEqual<Only<table>> for table

Source§

impl TableNotEqual<Only<table>> for table

Source§

impl TableNotEqual<Only<table>> for table

Source§

impl TableNotEqual<Only<table>> for table

Source§

impl TableNotEqual<Only<table>> for table

Source§

impl TableNotEqual<Only<table>> for table

Source§

impl TableNotEqual<Only<table>> for table

Source§

impl TableNotEqual<Only<table>> for table

Source§

impl TableNotEqual<Only<table>> for table

Source§

impl TableNotEqual<Only<table>> for table

Source§

impl TableNotEqual<Only<table>> for table

Source§

impl TableNotEqual<Only<table>> for table

Source§

impl TableNotEqual<Only<table>> for table

Source§

impl TableNotEqual<Only<table>> for table

Source§

impl TableNotEqual<Only<table>> for table

Source§

impl TableNotEqual<Only<table>> for table

Source§

impl TableNotEqual<Only<table>> for table

Source§

impl<TSM> TableNotEqual<Tablesample<table, TSM>> for table
where TSM: TablesampleMethod,

Source§

impl<TSM> TableNotEqual<Tablesample<table, TSM>> for table
where TSM: TablesampleMethod,

Source§

impl<TSM> TableNotEqual<Tablesample<table, TSM>> for table
where TSM: TablesampleMethod,

Source§

impl<TSM> TableNotEqual<Tablesample<table, TSM>> for table
where TSM: TablesampleMethod,

Source§

impl<TSM> TableNotEqual<Tablesample<table, TSM>> for table
where TSM: TablesampleMethod,

Source§

impl<TSM> TableNotEqual<Tablesample<table, TSM>> for table
where TSM: TablesampleMethod,

Source§

impl<TSM> TableNotEqual<Tablesample<table, TSM>> for table
where TSM: TablesampleMethod,

Source§

impl<TSM> TableNotEqual<Tablesample<table, TSM>> for table
where TSM: TablesampleMethod,

Source§

impl<TSM> TableNotEqual<Tablesample<table, TSM>> for table
where TSM: TablesampleMethod,

Source§

impl<TSM> TableNotEqual<Tablesample<table, TSM>> for table
where TSM: TablesampleMethod,

Source§

impl<TSM> TableNotEqual<Tablesample<table, TSM>> for table
where TSM: TablesampleMethod,

Source§

impl<TSM> TableNotEqual<Tablesample<table, TSM>> for table
where TSM: TablesampleMethod,

Source§

impl<TSM> TableNotEqual<Tablesample<table, TSM>> for table
where TSM: TablesampleMethod,

Source§

impl<TSM> TableNotEqual<Tablesample<table, TSM>> for table
where TSM: TablesampleMethod,

Source§

impl<TSM> TableNotEqual<Tablesample<table, TSM>> for table
where TSM: TablesampleMethod,

Source§

impl<TSM> TableNotEqual<Tablesample<table, TSM>> for table
where TSM: TablesampleMethod,

Source§

impl<TSM> TableNotEqual<Tablesample<table, TSM>> for table
where TSM: TablesampleMethod,

Source§

impl<TSM> TableNotEqual<Tablesample<table, TSM>> for table
where TSM: TablesampleMethod,

Source§

impl TableNotEqual<table> for table

Source§

impl TableNotEqual<table> for table

Source§

impl TableNotEqual<table> for Only<table>

Source§

impl<TSM> TableNotEqual<table> for Tablesample<table, TSM>
where TSM: TablesampleMethod,

Source§

impl TableNotEqual<table> for table

Source§

impl TableNotEqual<table> for table

Source§

impl TableNotEqual<table> for Only<table>

Source§

impl<TSM> TableNotEqual<table> for Tablesample<table, TSM>
where TSM: TablesampleMethod,

Source§

impl TableNotEqual<table> for table

Source§

impl TableNotEqual<table> for table

Source§

impl TableNotEqual<table> for Only<table>

Source§

impl<TSM> TableNotEqual<table> for Tablesample<table, TSM>
where TSM: TablesampleMethod,

Source§

impl TableNotEqual<table> for table

Source§

impl TableNotEqual<table> for table

Source§

impl TableNotEqual<table> for Only<table>

Source§

impl<TSM> TableNotEqual<table> for Tablesample<table, TSM>
where TSM: TablesampleMethod,

Source§

impl TableNotEqual<table> for table

Source§

impl TableNotEqual<table> for table

Source§

impl TableNotEqual<table> for Only<table>

Source§

impl<TSM> TableNotEqual<table> for Tablesample<table, TSM>
where TSM: TablesampleMethod,

Source§

impl TableNotEqual<table> for table

Source§

impl TableNotEqual<table> for table

Source§

impl TableNotEqual<table> for Only<table>

Source§

impl<TSM> TableNotEqual<table> for Tablesample<table, TSM>
where TSM: TablesampleMethod,

Source§

impl TableNotEqual<table> for table

Source§

impl TableNotEqual<table> for table

Source§

impl TableNotEqual<table> for Only<table>

Source§

impl<TSM> TableNotEqual<table> for Tablesample<table, TSM>
where TSM: TablesampleMethod,

Source§

impl TableNotEqual<table> for table

Source§

impl TableNotEqual<table> for table

Source§

impl TableNotEqual<table> for Only<table>

Source§

impl<TSM> TableNotEqual<table> for Tablesample<table, TSM>
where TSM: TablesampleMethod,

Source§

impl TableNotEqual<table> for table

Source§

impl TableNotEqual<table> for table

Source§

impl TableNotEqual<table> for Only<table>

Source§

impl<TSM> TableNotEqual<table> for Tablesample<table, TSM>
where TSM: TablesampleMethod,

Source§

impl TableNotEqual<table> for table

Source§

impl TableNotEqual<table> for table

Source§

impl TableNotEqual<table> for Only<table>

Source§

impl<TSM> TableNotEqual<table> for Tablesample<table, TSM>
where TSM: TablesampleMethod,

Source§

impl TableNotEqual<table> for table

Source§

impl TableNotEqual<table> for table

Source§

impl TableNotEqual<table> for Only<table>

Source§

impl<TSM> TableNotEqual<table> for Tablesample<table, TSM>
where TSM: TablesampleMethod,

Source§

impl TableNotEqual<table> for table

Source§

impl TableNotEqual<table> for table

Source§

impl TableNotEqual<table> for Only<table>

Source§

impl<TSM> TableNotEqual<table> for Tablesample<table, TSM>
where TSM: TablesampleMethod,

Source§

impl TableNotEqual<table> for table

Source§

impl TableNotEqual<table> for table

Source§

impl TableNotEqual<table> for Only<table>

Source§

impl<TSM> TableNotEqual<table> for Tablesample<table, TSM>
where TSM: TablesampleMethod,

Source§

impl TableNotEqual<table> for table

Source§

impl TableNotEqual<table> for table

Source§

impl TableNotEqual<table> for Only<table>

Source§

impl<TSM> TableNotEqual<table> for Tablesample<table, TSM>
where TSM: TablesampleMethod,

Source§

impl TableNotEqual<table> for table

Source§

impl TableNotEqual<table> for table

Source§

impl TableNotEqual<table> for Only<table>

Source§

impl<TSM> TableNotEqual<table> for Tablesample<table, TSM>
where TSM: TablesampleMethod,

Source§

impl TableNotEqual<table> for table

Source§

impl TableNotEqual<table> for table

Source§

impl TableNotEqual<table> for Only<table>

Source§

impl<TSM> TableNotEqual<table> for Tablesample<table, TSM>
where TSM: TablesampleMethod,

Source§

impl TableNotEqual<table> for table

Source§

impl TableNotEqual<table> for table

Source§

impl TableNotEqual<table> for Only<table>

Source§

impl<TSM> TableNotEqual<table> for Tablesample<table, TSM>
where TSM: TablesampleMethod,

Source§

impl TableNotEqual<table> for table

Source§

impl TableNotEqual<table> for table

Source§

impl TableNotEqual<table> for Only<table>

Source§

impl<TSM> TableNotEqual<table> for Tablesample<table, TSM>
where TSM: TablesampleMethod,

Source§

impl UndecoratedInsertRecord<table> for NewCorpus

Source§

impl UndecoratedInsertRecord<table> for NewSandboxCorpus

Auto Trait Implementations§

§

impl Freeze for table

§

impl RefUnwindSafe for table

§

impl Send for table

§

impl Sync for table

§

impl Unpin for table

§

impl UnsafeUnpin for table

§

impl UnwindSafe for table

Blanket Implementations§

§

impl<T> AggregateExpressionMethods for T

§

fn aggregate_distinct(self) -> Self::Output
where Self: DistinctDsl,

DISTINCT modifier for aggregate functions Read more
§

fn aggregate_all(self) -> Self::Output
where Self: AllDsl,

ALL modifier for aggregate functions Read more
§

fn aggregate_filter<P>(self, f: P) -> Self::Output
where P: AsExpression<Bool>, Self: FilterDsl<<P as AsExpression<Bool>>::Expression>,

Add an aggregate function filter Read more
§

fn aggregate_order<O>(self, o: O) -> Self::Output
where Self: OrderAggregateDsl<O>,

Add an aggregate function order Read more
Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<T1, T2> AppearsInFromClause<T2> for T1
where T1: TableNotEqual<T2> + Table, T2: Table,

§

type Count = Never

How many times does Self appear in QS?
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where T: 'a,

§

fn implicit( self, class: Class, constructed: bool, tag: u32, ) -> TaggedParser<'a, Implicit, Self, E>

Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<'a, T, DB> BoxedDsl<'a, DB> for T
where 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

The return type of internal_into_boxed
§

fn internal_into_boxed(self) -> <T as BoxedDsl<'a, DB>>::Output

See the trait documentation.
§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
§

impl<T> CombineDsl for T
where T: Table,

§

type Query = <T as AsQuery>::Query

What kind of query does this type represent?
§

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>,

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>,

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>,

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>,

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>,

Combine two queries using a SQL EXCEPT ALL
§

impl<T> CopyTarget for T
where T: Table + StaticQueryFragment, <T as AsQuery>::SqlType: SqlType, <T as Table>::AllColumns: ColumnList, <T as StaticQueryFragment>::Component: QueryFragment<Pg>,

§

type Table = T

The table targeted by the command
§

type SqlType = <T as AsQuery>::SqlType

The sql side type of the target expression
§

fn walk_target(pass: AstPass<'_, '_, Pg>) -> Result<(), Error>

§

impl<T> DistinctDsl for T
where T: AsQuery<Query = SelectStatement<FromClause<T>>> + Table, <T as QuerySource>::DefaultSelection: Expression<SqlType = <T as AsQuery>::SqlType> + ValidGrouping<()>, <T as AsQuery>::SqlType: TypedExpressionType,

§

type Output = <SelectStatement<FromClause<T>> as DistinctDsl>::Output

The type returned by .distinct
§

fn distinct(self) -> <SelectStatement<FromClause<T>> as DistinctDsl>::Output

See the trait documentation.
§

impl<T, Selection> DistinctOnDsl<Selection> for T
where 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

The type returned by .distinct_on
§

fn distinct_on( self, selection: Selection, ) -> <T as DistinctOnDsl<Selection>>::Output

See the trait documentation
§

impl<T> Downcast for T
where T: Any,

§

fn into_any(self: Box<T>) -> Box<dyn Any>

Converts Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.
§

fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>

Converts Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further downcast into Rc<ConcreteType> where ConcreteType implements Trait.
§

fn as_any(&self) -> &(dyn Any + 'static)

Converts &Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &Any’s vtable from &Trait’s.
§

fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)

Converts &mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &mut Any’s vtable from &mut Trait’s.
§

impl<T> DowncastSend for T
where T: Any + Send,

§

fn into_any_send(self: Box<T>) -> Box<dyn Any + Send>

Converts Box<Trait> (where Trait: DowncastSend) to Box<dyn Any + Send>, which can then be downcast into Box<ConcreteType> where ConcreteType implements Trait.
§

impl<T> DowncastSync for T
where T: Any + Send + Sync,

§

fn into_any_sync(self: Box<T>) -> Box<dyn Any + Send + Sync>

Converts Box<Trait> (where Trait: DowncastSync) to Box<dyn Any + Send + Sync>, which can then be downcast into Box<ConcreteType> where ConcreteType implements Trait.
§

fn into_any_arc(self: Arc<T>) -> Arc<dyn Any + Send + Sync>

Converts Arc<Trait> (where Trait: DowncastSync) to Arc<Any>, which can then be downcast into Arc<ConcreteType> where ConcreteType implements Trait.
Source§

impl<T> DynClone for T
where T: Clone,

Source§

fn __clone_box(&self, _: Private) -> *mut ()

§

impl<Conn, DB, T> ExecuteDsl<Conn, DB> for T
where Conn: Connection<Backend = DB>, DB: Backend, T: QueryFragment<DB> + QueryId,

§

fn execute(query: T, conn: &mut Conn) -> Result<usize, Error>

Execute this command
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

§

impl<T> IntoCollection<T> for T

§

fn into_collection<A>(self) -> SmallVec<A>
where A: Array<Item = T>,

Converts self into a collection.
§

fn mapped<U, F, A>(self, f: F) -> SmallVec<A>
where F: FnMut(T) -> U, A: Array<Item = U>,

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
§

impl<T> IntoSql for T

§

fn into_sql<T>(self) -> Self::Expression
where Self: Sized + AsExpression<T>, T: SqlType + TypedExpressionType,

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>, T: SqlType + TypedExpressionType,

Convert &self to an expression for Diesel’s query builder. Read more
§

impl<T> JoinOnDsl for T
where T: QuerySource,

§

fn on<On>(self, on: On) -> OnClauseWrapper<Self, On>

See the trait documentation.
§

impl<Lhs, Rhs, On> JoinTo<OnClauseWrapper<Rhs, On>> for Lhs
where 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<T> LimitDsl for T
where T: Table, <T as AsQuery>::Query: LimitDsl,

§

type Output = <<T as AsQuery>::Query as LimitDsl>::Output

The type returned by .limit
§

fn limit(self, limit: i64) -> <T as LimitDsl>::Output

See the trait documentation
§

impl<T, Lock> LockingDsl<Lock> for T
where 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

The type returned by set_lock. See dsl::ForUpdate and friends for convenient access to this type.
§

fn with_lock(self, lock: Lock) -> <T as LockingDsl<Lock>>::Output

See the trait level documentation
§

impl<T> OffsetDsl for T
where T: Table, <T as AsQuery>::Query: OffsetDsl,

§

type Output = <<T as AsQuery>::Query as OffsetDsl>::Output

The type returned by .offset.
§

fn offset(self, offset: i64) -> <T as OffsetDsl>::Output

See the trait documentation
§

impl<T> OnlyDsl for T
where T: Table,

§

fn only(self) -> Only<Self>

See the trait-level docs.
§

impl<T> Paint for T
where T: ?Sized,

§

fn fg(&self, value: Color) -> Painted<&T>

Returns a styled value derived from self with the foreground set to value.

This method should be used rarely. Instead, prefer to use color-specific builder methods like red() and green(), which have the same functionality but are pithier.

§Example

Set foreground color to white using fg():

use yansi::{Paint, Color};

painted.fg(Color::White);

Set foreground color to white using white().

use yansi::Paint;

painted.white();
§

fn primary(&self) -> Painted<&T>

Returns self with the fg() set to [Color :: Primary].

§Example
println!("{}", value.primary());
§

fn fixed(&self, color: u8) -> Painted<&T>

Returns self with the fg() set to [Color :: Fixed].

§Example
println!("{}", value.fixed(color));
§

fn rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

Returns self with the fg() set to [Color :: Rgb].

§Example
println!("{}", value.rgb(r, g, b));
§

fn black(&self) -> Painted<&T>

Returns self with the fg() set to [Color :: Black].

§Example
println!("{}", value.black());
§

fn red(&self) -> Painted<&T>

Returns self with the fg() set to [Color :: Red].

§Example
println!("{}", value.red());
§

fn green(&self) -> Painted<&T>

Returns self with the fg() set to [Color :: Green].

§Example
println!("{}", value.green());
§

fn yellow(&self) -> Painted<&T>

Returns self with the fg() set to [Color :: Yellow].

§Example
println!("{}", value.yellow());
§

fn blue(&self) -> Painted<&T>

Returns self with the fg() set to [Color :: Blue].

§Example
println!("{}", value.blue());
§

fn magenta(&self) -> Painted<&T>

Returns self with the fg() set to [Color :: Magenta].

§Example
println!("{}", value.magenta());
§

fn cyan(&self) -> Painted<&T>

Returns self with the fg() set to [Color :: Cyan].

§Example
println!("{}", value.cyan());
§

fn white(&self) -> Painted<&T>

Returns self with the fg() set to [Color :: White].

§Example
println!("{}", value.white());
§

fn bright_black(&self) -> Painted<&T>

Returns self with the fg() set to [Color :: BrightBlack].

§Example
println!("{}", value.bright_black());
§

fn bright_red(&self) -> Painted<&T>

Returns self with the fg() set to [Color :: BrightRed].

§Example
println!("{}", value.bright_red());
§

fn bright_green(&self) -> Painted<&T>

Returns self with the fg() set to [Color :: BrightGreen].

§Example
println!("{}", value.bright_green());
§

fn bright_yellow(&self) -> Painted<&T>

Returns self with the fg() set to [Color :: BrightYellow].

§Example
println!("{}", value.bright_yellow());
§

fn bright_blue(&self) -> Painted<&T>

Returns self with the fg() set to [Color :: BrightBlue].

§Example
println!("{}", value.bright_blue());
§

fn bright_magenta(&self) -> Painted<&T>

Returns self with the fg() set to [Color :: BrightMagenta].

§Example
println!("{}", value.bright_magenta());
§

fn bright_cyan(&self) -> Painted<&T>

Returns self with the fg() set to [Color :: BrightCyan].

§Example
println!("{}", value.bright_cyan());
§

fn bright_white(&self) -> Painted<&T>

Returns self with the fg() set to [Color :: BrightWhite].

§Example
println!("{}", value.bright_white());
§

fn bg(&self, value: Color) -> Painted<&T>

Returns a styled value derived from self with the background set to value.

This method should be used rarely. Instead, prefer to use color-specific builder methods like on_red() and on_green(), which have the same functionality but are pithier.

§Example

Set background color to red using fg():

use yansi::{Paint, Color};

painted.bg(Color::Red);

Set background color to red using on_red().

use yansi::Paint;

painted.on_red();
§

fn on_primary(&self) -> Painted<&T>

Returns self with the bg() set to [Color :: Primary].

§Example
println!("{}", value.on_primary());
§

fn on_fixed(&self, color: u8) -> Painted<&T>

Returns self with the bg() set to [Color :: Fixed].

§Example
println!("{}", value.on_fixed(color));
§

fn on_rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

Returns self with the bg() set to [Color :: Rgb].

§Example
println!("{}", value.on_rgb(r, g, b));
§

fn on_black(&self) -> Painted<&T>

Returns self with the bg() set to [Color :: Black].

§Example
println!("{}", value.on_black());
§

fn on_red(&self) -> Painted<&T>

Returns self with the bg() set to [Color :: Red].

§Example
println!("{}", value.on_red());
§

fn on_green(&self) -> Painted<&T>

Returns self with the bg() set to [Color :: Green].

§Example
println!("{}", value.on_green());
§

fn on_yellow(&self) -> Painted<&T>

Returns self with the bg() set to [Color :: Yellow].

§Example
println!("{}", value.on_yellow());
§

fn on_blue(&self) -> Painted<&T>

Returns self with the bg() set to [Color :: Blue].

§Example
println!("{}", value.on_blue());
§

fn on_magenta(&self) -> Painted<&T>

Returns self with the bg() set to [Color :: Magenta].

§Example
println!("{}", value.on_magenta());
§

fn on_cyan(&self) -> Painted<&T>

Returns self with the bg() set to [Color :: Cyan].

§Example
println!("{}", value.on_cyan());
§

fn on_white(&self) -> Painted<&T>

Returns self with the bg() set to [Color :: White].

§Example
println!("{}", value.on_white());
§

fn on_bright_black(&self) -> Painted<&T>

Returns self with the bg() set to [Color :: BrightBlack].

§Example
println!("{}", value.on_bright_black());
§

fn on_bright_red(&self) -> Painted<&T>

Returns self with the bg() set to [Color :: BrightRed].

§Example
println!("{}", value.on_bright_red());
§

fn on_bright_green(&self) -> Painted<&T>

Returns self with the bg() set to [Color :: BrightGreen].

§Example
println!("{}", value.on_bright_green());
§

fn on_bright_yellow(&self) -> Painted<&T>

Returns self with the bg() set to [Color :: BrightYellow].

§Example
println!("{}", value.on_bright_yellow());
§

fn on_bright_blue(&self) -> Painted<&T>

Returns self with the bg() set to [Color :: BrightBlue].

§Example
println!("{}", value.on_bright_blue());
§

fn on_bright_magenta(&self) -> Painted<&T>

Returns self with the bg() set to [Color :: BrightMagenta].

§Example
println!("{}", value.on_bright_magenta());
§

fn on_bright_cyan(&self) -> Painted<&T>

Returns self with the bg() set to [Color :: BrightCyan].

§Example
println!("{}", value.on_bright_cyan());
§

fn on_bright_white(&self) -> Painted<&T>

Returns self with the bg() set to [Color :: BrightWhite].

§Example
println!("{}", value.on_bright_white());
§

fn attr(&self, value: Attribute) -> Painted<&T>

Enables the styling [Attribute] value.

This method should be used rarely. Instead, prefer to use attribute-specific builder methods like bold() and underline(), which have the same functionality but are pithier.

§Example

Make text bold using attr():

use yansi::{Paint, Attribute};

painted.attr(Attribute::Bold);

Make text bold using using bold().

use yansi::Paint;

painted.bold();
§

fn bold(&self) -> Painted<&T>

Returns self with the attr() set to [Attribute :: Bold].

§Example
println!("{}", value.bold());
§

fn dim(&self) -> Painted<&T>

Returns self with the attr() set to [Attribute :: Dim].

§Example
println!("{}", value.dim());
§

fn italic(&self) -> Painted<&T>

Returns self with the attr() set to [Attribute :: Italic].

§Example
println!("{}", value.italic());
§

fn underline(&self) -> Painted<&T>

Returns self with the attr() set to [Attribute :: Underline].

§Example
println!("{}", value.underline());

Returns self with the attr() set to [Attribute :: Blink].

§Example
println!("{}", value.blink());

Returns self with the attr() set to [Attribute :: RapidBlink].

§Example
println!("{}", value.rapid_blink());
§

fn invert(&self) -> Painted<&T>

Returns self with the attr() set to [Attribute :: Invert].

§Example
println!("{}", value.invert());
§

fn conceal(&self) -> Painted<&T>

Returns self with the attr() set to [Attribute :: Conceal].

§Example
println!("{}", value.conceal());
§

fn strike(&self) -> Painted<&T>

Returns self with the attr() set to [Attribute :: Strike].

§Example
println!("{}", value.strike());
§

fn quirk(&self, value: Quirk) -> Painted<&T>

Enables the yansi [Quirk] value.

This method should be used rarely. Instead, prefer to use quirk-specific builder methods like mask() and wrap(), which have the same functionality but are pithier.

§Example

Enable wrapping using .quirk():

use yansi::{Paint, Quirk};

painted.quirk(Quirk::Wrap);

Enable wrapping using wrap().

use yansi::Paint;

painted.wrap();
§

fn mask(&self) -> Painted<&T>

Returns self with the quirk() set to [Quirk :: Mask].

§Example
println!("{}", value.mask());
§

fn wrap(&self) -> Painted<&T>

Returns self with the quirk() set to [Quirk :: Wrap].

§Example
println!("{}", value.wrap());
§

fn linger(&self) -> Painted<&T>

Returns self with the quirk() set to [Quirk :: Linger].

§Example
println!("{}", value.linger());
§

fn clear(&self) -> Painted<&T>

👎Deprecated since 1.0.1:

renamed to resetting() due to conflicts with Vec::clear(). The clear() method will be removed in a future release.

Returns self with the quirk() set to [Quirk :: Clear].

§Example
println!("{}", value.clear());
§

fn resetting(&self) -> Painted<&T>

Returns self with the quirk() set to [Quirk :: Resetting].

§Example
println!("{}", value.resetting());
§

fn bright(&self) -> Painted<&T>

Returns self with the quirk() set to [Quirk :: Bright].

§Example
println!("{}", value.bright());
§

fn on_bright(&self) -> Painted<&T>

Returns self with the quirk() set to [Quirk :: OnBright].

§Example
println!("{}", value.on_bright());
§

fn whenever(&self, value: Condition) -> Painted<&T>

Conditionally enable styling based on whether the [Condition] value applies. Replaces any previous condition.

See the crate level docs for more details.

§Example

Enable styling painted only when both stdout and stderr are TTYs:

use yansi::{Paint, Condition};

painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);
§

fn new(self) -> Painted<Self>
where Self: Sized,

Create a new [Painted] with a default [Style]. Read more
§

fn paint<S>(&self, style: S) -> Painted<&Self>
where S: Into<Style>,

Apply a style wholesale to self. Any previous style is replaced. Read more
§

impl<T> Pointable for T

§

const ALIGN: usize

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
§

impl<T> QueryDsl for T
where T: Table,

§

fn distinct(self) -> Self::Output
where Self: DistinctDsl,

Adds the DISTINCT keyword to a query. Read more
§

fn distinct_on<Expr>(self, expr: Expr) -> Self::Output
where Self: DistinctOnDsl<Expr>,

Adds the DISTINCT ON clause to a query. Read more
§

fn select<Selection>(self, selection: Selection) -> Self::Output
where Selection: Expression, Self: SelectDsl<Selection>,

Adds a SELECT clause to the query. Read more
§

fn count(self) -> Self::Output
where 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::Output
where Self: JoinWithImplicitOnClause<Rhs, Inner>,

Join two tables using a SQL INNER JOIN. Read more
§

fn left_outer_join<Rhs>(self, rhs: Rhs) -> Self::Output
where Self: JoinWithImplicitOnClause<Rhs, LeftOuter>,

Join two tables using a SQL LEFT OUTER JOIN. Read more
§

fn left_join<Rhs>(self, rhs: Rhs) -> Self::Output
where Self: JoinWithImplicitOnClause<Rhs, LeftOuter>,

Alias for left_outer_join.
§

fn filter<Predicate>(self, predicate: Predicate) -> Self::Output
where Self: FilterDsl<Predicate>,

Adds to the WHERE clause of a query. Read more
§

fn or_filter<Predicate>(self, predicate: Predicate) -> Self::Output
where Self: OrFilterDsl<Predicate>,

Adds to the WHERE clause of a query using OR Read more
§

fn find<PK>(self, id: PK) -> Self::Output
where 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::Output
where Expr: Expression, Self: OrderDsl<Expr>,

Sets the order clause of a query. Read more
§

fn order_by<Expr>(self, expr: Expr) -> Self::Output
where Expr: Expression, Self: OrderDsl<Expr>,

Alias for order
§

fn then_order_by<Order>(self, order: Order) -> Self::Output
where Self: ThenOrderDsl<Order>,

Appends to the ORDER BY clause of this SQL query. Read more
§

fn limit(self, limit: i64) -> Self::Output
where Self: LimitDsl,

Sets the limit clause of the query. Read more
§

fn offset(self, offset: i64) -> Self::Output
where Self: OffsetDsl,

Sets the offset clause of the query. Read more
§

fn group_by<GB>(self, group_by: GB) -> Self::Output
where GB: Expression, Self: GroupByDsl<GB>,

Sets the group by clause of a query. Read more
§

fn having<Predicate>(self, predicate: Predicate) -> Self::Output
where Self: HavingDsl<Predicate>,

Adds to the HAVING clause of a query. Read more
§

fn for_update(self) -> Self::Output
where Self: LockingDsl<ForUpdate>,

Adds FOR UPDATE to the end of the select statement. Read more
§

fn for_no_key_update(self) -> Self::Output
where Self: LockingDsl<ForNoKeyUpdate>,

Adds FOR NO KEY UPDATE to the end of the select statement. Read more
§

fn for_share(self) -> Self::Output
where Self: LockingDsl<ForShare>,

Adds FOR SHARE to the end of the select statement. Read more
§

fn for_key_share(self) -> Self::Output
where Self: LockingDsl<ForKeyShare>,

Adds FOR KEY SHARE to the end of the select statement. Read more
§

fn skip_locked(self) -> Self::Output
where Self: ModifyLockDsl<SkipLocked>,

Adds SKIP LOCKED to the end of a FOR UPDATE clause. Read more
§

fn no_wait(self) -> Self::Output
where Self: ModifyLockDsl<NoWait>,

Adds NOWAIT to the end of a FOR UPDATE clause. Read more
§

fn into_boxed<'a, DB>(self) -> Self::Output
where DB: Backend, Self: BoxedDsl<'a, DB>,

Boxes the pieces of a query into a single type. Read more
§

fn single_value(self) -> Self::Output
where Self: SingleValueDsl,

Wraps this select statement in parenthesis, allowing it to be used as an expression. Read more
§

fn nullable(self) -> Self::Output
where Self: SelectNullableDsl,

Coerce the SQL type of the select clause to it’s nullable equivalent. Read more
§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

§

impl<T, Conn> RunQueryDsl<Conn> for T
where T: Table,

§

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>,

Executes the given query, returning a Vec with the returned rows. Read more
§

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,

Executes the given query, returning an Iterator with the returned rows. Read more
§

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
§

fn get_results<'query, U>(self, conn: &mut Conn) -> Result<Vec<U>, Error>
where Self: LoadQuery<'query, Conn, U>,

Runs the command, returning an Vec with the affected rows. Read more
§

fn first<'query, U>(self, conn: &mut Conn) -> Result<U, Error>
where Self: LimitDsl, Self::Output: LoadQuery<'query, Conn, U>,

Attempts to load a single record. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
§

impl<T> TablesampleDsl for T
where T: Table,

§

fn tablesample_bernoulli( self, portion: i16, ) -> Tablesample<Self, BernoulliMethod>

See the trait-level docs.
§

fn tablesample_system(self, portion: i16) -> Tablesample<Self, SystemMethod>

See the trait-level docs.
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WindowExpressionMethods for T

§

fn over(self) -> Self::Output
where Self: OverDsl,

Turn a function call into a window function call Read more
§

fn window_filter<P>(self, f: P) -> Self::Output
where P: AsExpression<Bool>, Self: FilterDsl<<P as AsExpression<Bool>>::Expression>,

Add a filter to the current window function Read more
§

fn partition_by<E>(self, expr: E) -> Self::Output
where Self: PartitionByDsl<E>,

Add a partition clause to the current window function Read more
§

fn window_order<E>(self, expr: E) -> Self::Output
where Self: OrderWindowDsl<E>,

Add a order clause to the current window function Read more
§

fn frame_by<E>(self, expr: E) -> Self::Output
where Self: FrameDsl<E>,

Add a frame clause to the current window function Read more
§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more