[]Struct ackorelic::tables::users_skill::table

pub struct table;

The actual table struct

This is the type which provides the base methods of the query builder, such as .select and .filter.

Methods

impl table

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

impl Clone for table

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Copy for table

impl Debug for table

impl HasTable for table

type Table = Self

The table this type is associated with.

impl QuerySource for table

type FromClause = Identifier<'static>

The type returned by from_clause

type DefaultSelection = Self::AllColumns

The type returned by default_selection

impl Table for table

type PrimaryKey = id

The type returned by primary_key

type AllColumns = (id, name, description, allocation_logic)

The type returned by all_columns

impl SelectableExpression<table> for star

impl SelectableExpression<table> for id

impl SelectableExpression<table> for name

impl SelectableExpression<table> for description

impl SelectableExpression<table> for allocation_logic

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

type FromClause = Join<Left, Right, Kind>

type OnClause = <Join<Left, Right, Kind> as JoinTo<table>>::OnClause

impl<Join, On> JoinTo<JoinOn<Join, On>> for table where
    JoinOn<Join, On>: JoinTo<table>, 

type FromClause = JoinOn<Join, On>

type OnClause = <JoinOn<Join, On> as JoinTo<table>>::OnClause

impl<F, S, D, W, O, L, Of, G> JoinTo<SelectStatement<F, S, D, W, O, L, Of, G, NoLockingClause>> for table where
    SelectStatement<F, S, D, W, O, L, Of, G>: JoinTo<table>, 

type FromClause = SelectStatement<F, S, D, W, O, L, Of, G>

type OnClause = <SelectStatement<F, S, D, W, O, L, Of, G> as JoinTo<table>>::OnClause

impl<'a, QS, ST, DB> JoinTo<BoxedSelectStatement<'a, QS, ST, DB>> for table where
    BoxedSelectStatement<'a, QS, ST, DB>: JoinTo<table>, 

type FromClause = BoxedSelectStatement<'a, QS, ST, DB>

type OnClause = <BoxedSelectStatement<'a, QS, ST, DB> as JoinTo<table>>::OnClause

impl AppearsOnTable<table> for star

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

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

The VALUES clause to insert these records Read more

fn insert_into(
    self,
    table: T
) -> InsertStatement<T, Self::Values, Insert, NoReturningClause>
[src]

Insert self into a given table. Read more

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

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

The VALUES clause to insert these records Read more

fn insert_into(
    self,
    table: T
) -> InsertStatement<T, Self::Values, Insert, NoReturningClause>
[src]

Insert self into a given table. Read more

impl QueryId for table

type QueryId = table

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

fn query_id() -> Option<TypeId>[src]

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

impl IntoUpdateTarget for table

type WhereClause = <Self::Query as IntoUpdateTarget>::WhereClause

What is the WHERE clause of this target?

impl AsQuery for table

type SqlType = SqlType

The SQL type of Self::Query

type Query = SelectStatement<Self>

What kind of query does this type represent?

impl AppearsInFromClause<table> for table

type Count = Once

How many times does Self appear in QS?

impl AppearsInFromClause<table> for ()

type Count = Never

How many times does Self appear in QS?

Auto Trait Implementations

impl Sync for table

impl Send for table

impl Unpin for table

impl RefUnwindSafe for table

impl UnwindSafe for table

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> QueryDsl for T where
    T: Table
[src]

fn distinct(self) -> Self::Output where
    Self: DistinctDsl
[src]

Adds the DISTINCT keyword to a query. Read more

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

Adds the DISTINCT ON clause to a query. Read more

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

Adds a SELECT clause to the query. Read more

fn count(self) -> Self::Output where
    Self: SelectDsl<CountStar>, 
[src]

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>, 
[src]

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>, 
[src]

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>, 
[src]

Alias for [left_outer_join]. Read more

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

Adds to the WHERE clause of a query. Read more

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

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

fn find<PK>(self, id: PK) -> Self::Output where
    Self: FindDsl<PK>, 
[src]

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>, 
[src]

Sets the order clause of a query. Read more

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

Alias for order

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

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

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

Sets the limit clause of the query. Read more

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

Sets the offset clause of the query. Read more

fn for_update(self) -> Self::Output where
    Self: ForUpdateDsl
[src]

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

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

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

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

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

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

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

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

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

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

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>, 
[src]

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

fn single_value(self) -> Self::Output where
    Self: SingleValueDsl
[src]

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

fn nullable(self) -> Self::Output where
    Self: SelectNullableDsl
[src]

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

impl<T> JoinOnDsl for T where
    T: QuerySource
[src]

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

See the trait documentation.

impl<Lhs, Rhs, On> JoinTo<OnClauseWrapper<Rhs, On>> for Lhs where
    Lhs: Table
[src]

type FromClause = Rhs

type OnClause = On

impl<T> IntoSql for T[src]

fn into_sql<T>(self) -> Self::Expression where
    Self: AsExpression<T>, 
[src]

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>, 
[src]

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

impl<T, Expr> GroupByDsl<Expr> for T where
    Expr: Expression,
    T: Table + AsQuery,
    <T as AsQuery>::Query: GroupByDsl<Expr>, 
[src]

type Output = <<T as AsQuery>::Query as GroupByDsl<Expr>>::Output

The type returned by .group_by

impl<T, Conn> RunQueryDsl<Conn> for T where
    T: Table
[src]

fn execute(self, conn: &Conn) -> Result<usize, Error> where
    Conn: Connection,
    Self: ExecuteDsl<Conn, <Conn as Connection>::Backend>, 
[src]

Executes the given command, returning the number of rows affected. Read more

fn load<U>(self, conn: &Conn) -> Result<Vec<U>, Error> where
    Self: LoadQuery<Conn, U>, 
[src]

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

fn get_result<U>(self, conn: &Conn) -> Result<U, Error> where
    Self: LoadQuery<Conn, U>, 
[src]

Runs the command, and returns the affected row. Read more

fn get_results<U>(self, conn: &Conn) -> Result<Vec<U>, Error> where
    Self: LoadQuery<Conn, U>, 
[src]

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

fn first<U>(self, conn: &Conn) -> Result<U, Error> where
    Self: LimitDsl,
    Self::Output: LoadQuery<Conn, U>, 
[src]

Attempts to load a single record. Read more

impl<T, Predicate> FilterDsl<Predicate> for T where
    T: Table,
    <T as AsQuery>::Query: FilterDsl<Predicate>, 
[src]

type Output = <<T as AsQuery>::Query as FilterDsl<Predicate>>::Output

The type returned by .filter.

impl<T, Tab, V> IntoUpdateTarget for T where
    T: Identifiable<Table = Tab>,
    Tab: Table + FindDsl<<T as Identifiable>::Id>,
    <Tab as FindDsl<<T as Identifiable>::Id>>::Output: IntoUpdateTarget,
    <<Tab as FindDsl<<T as Identifiable>::Id>>::Output as HasTable>::Table == Tab,
    <<Tab as FindDsl<<T as Identifiable>::Id>>::Output as IntoUpdateTarget>::WhereClause == V, 
[src]

type WhereClause = V

What is the WHERE clause of this target?

impl<T, Selection> SelectDsl<Selection> for T where
    Selection: Expression,
    T: Table,
    <T as AsQuery>::Query: SelectDsl<Selection>, 
[src]

type Output = <<T as AsQuery>::Query as SelectDsl<Selection>>::Output

The type returned by .select

impl<T> AsQuery for T where
    T: Query
[src]

type SqlType = <T as Query>::SqlType

The SQL type of Self::Query

type Query = T

What kind of query does this type represent?

impl<T> LimitDsl for T where
    T: Table,
    <T as AsQuery>::Query: LimitDsl
[src]

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

The type returned by .limit

impl<T, Selection> DistinctOnDsl<Selection> for T where
    Selection: SelectableExpression<T>,
    T: Table,
    <T as AsQuery>::Query: DistinctOnDsl<Selection>, 
[src]

type Output = <<T as AsQuery>::Query as DistinctOnDsl<Selection>>::Output

The type returned by .distinct_on

impl<T, Expr> OrderDsl<Expr> for T where
    Expr: Expression,
    T: Table,
    <T as AsQuery>::Query: OrderDsl<Expr>, 
[src]

type Output = <<T as AsQuery>::Query as OrderDsl<Expr>>::Output

The type returned by .order.

impl<Conn, T, U> LoadQuery<Conn, U> for T where
    Conn: Connection,
    T: AsQuery + RunQueryDsl<Conn>,
    U: Queryable<<T as AsQuery>::SqlType, <Conn as Connection>::Backend>,
    <Conn as Connection>::Backend: HasSqlType<<T as AsQuery>::SqlType>,
    <T as AsQuery>::Query: QueryFragment<<Conn as Connection>::Backend>,
    <T as AsQuery>::Query: QueryId
[src]

impl<T, Lock> LockingDsl<Lock> for T where
    T: Table + AsQuery,
    <T as AsQuery>::Query: LockingDsl<Lock>, 
[src]

type Output = <<T as AsQuery>::Query as LockingDsl<Lock>>::Output

The type returned by set_lock. See [dsl::ForUpdate] and friends for convenient access to this type. Read more

impl<'a, T, DB> BoxedDsl<'a, DB> for T where
    T: Table + AsQuery,
    <T as AsQuery>::Query: BoxedDsl<'a, DB>, 
[src]

type Output = <<T as AsQuery>::Query as BoxedDsl<'a, DB>>::Output

The return type of internal_into_boxed

impl<T, Predicate> OrFilterDsl<Predicate> for T where
    T: Table,
    <T as AsQuery>::Query: OrFilterDsl<Predicate>, 
[src]

type Output = <<T as AsQuery>::Query as OrFilterDsl<Predicate>>::Output

The type returned by .filter.

impl<T, PK> FindDsl<PK> for T where
    T: Table + FilterDsl<<<T as Table>::PrimaryKey as EqAll<PK>>::Output>,
    <T as Table>::PrimaryKey: EqAll<PK>, 
[src]

type Output = <T as FilterDsl<<<T as Table>::PrimaryKey as EqAll<PK>>::Output>>::Output

The type returned by .find.

impl<T, Expr> ThenOrderDsl<Expr> for T where
    Expr: Expression,
    T: Table,
    <T as AsQuery>::Query: ThenOrderDsl<Expr>, 
[src]

type Output = <<T as AsQuery>::Query as ThenOrderDsl<Expr>>::Output

The type returned by .then_order_by.

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

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

The type returned by .offset.

impl<T> ForUpdateDsl for T where
    T: LockingDsl<ForUpdate>, 
[src]

type Output = <T as LockingDsl<ForUpdate>>::Output

Deprecated since 1.3.0:

use LockingDsl<ForUpdate> instead

The type returned by for_update. See [dsl::ForUpdate] for convenient access to this type. Read more

impl<T> DistinctDsl for T where
    T: Table,
    <T as AsQuery>::Query: DistinctDsl
[src]

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

The type returned by .distinct