[−][src]Struct webapp::schema::sessions::table
The actual table struct
This is the type which provides the base methods of the query
builder, such as .select
and .filter
.
Implementations
impl table
[src]
pub fn star(&self) -> star
[src]
Represents table_name.*
, which is sometimes necessary
for efficient count queries. It cannot be used in place of
all_columns
Trait Implementations
impl AppearsInFromClause<table> for table
[src]
type Count = Once
How many times does Self
appear in QS
?
impl AppearsInFromClause<table> for ()
[src]
type Count = Never
How many times does Self
appear in QS
?
impl AppearsOnTable<table> for star
[src]
impl AsQuery for table
[src]
type SqlType = SqlType
The SQL type of Self::Query
type Query = SelectStatement<Self>
What kind of query does this type represent?
fn as_query(self) -> Self::Query
[src]
impl Clone for table
[src]
impl Copy for table
[src]
impl Debug for table
[src]
impl HasTable for table
[src]
impl<T> Insertable<T> for table where
<table as AsQuery>::Query: Insertable<T>,
[src]
<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 values(self) -> Self::Values
[src]
fn insert_into(
self,
table: T
) -> InsertStatement<T, Self::Values, Insert, NoReturningClause>
self,
table: T
) -> InsertStatement<T, Self::Values, Insert, NoReturningClause>
impl<'a, T> Insertable<T> for &'a table where
table: Insertable<T>,
[src]
table: Insertable<T>,
type Values = <table as Insertable<T>>::Values
The VALUES
clause to insert these records Read more
fn values(self) -> Self::Values
[src]
fn insert_into(
self,
table: T
) -> InsertStatement<T, Self::Values, Insert, NoReturningClause>
self,
table: T
) -> InsertStatement<T, Self::Values, Insert, NoReturningClause>
impl<'insert> Insertable<table> for Session
[src]
type Values = <(Option<Eq<token, String>>,) as Insertable<table>>::Values
The VALUES
clause to insert these records Read more
fn values(self) -> Self::Values
[src]
fn insert_into(
self,
table: T
) -> InsertStatement<T, Self::Values, Insert, NoReturningClause>
self,
table: T
) -> InsertStatement<T, Self::Values, Insert, NoReturningClause>
impl<'insert> Insertable<table> for &'insert Session
[src]
type Values = <(Option<Eq<token, &'insert String>>,) as Insertable<table>>::Values
The VALUES
clause to insert these records Read more
fn values(self) -> Self::Values
[src]
fn insert_into(
self,
table: T
) -> InsertStatement<T, Self::Values, Insert, NoReturningClause>
self,
table: T
) -> InsertStatement<T, Self::Values, Insert, NoReturningClause>
impl IntoUpdateTarget for table
[src]
type WhereClause = <Self::Query as IntoUpdateTarget>::WhereClause
What is the WHERE
clause of this target?
fn into_update_target(self) -> UpdateTarget<Self::Table, Self::WhereClause>
[src]
impl<'a, QS, ST, DB> JoinTo<BoxedSelectStatement<'a, QS, ST, DB>> for table where
BoxedSelectStatement<'a, QS, ST, DB>: JoinTo<table>,
[src]
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
fn join_target(
rhs: BoxedSelectStatement<'a, QS, ST, DB>
) -> (Self::FromClause, Self::OnClause)
[src]
rhs: BoxedSelectStatement<'a, QS, ST, DB>
) -> (Self::FromClause, Self::OnClause)
impl<Left, Right, Kind> JoinTo<Join<Left, Right, Kind>> for table where
Join<Left, Right, Kind>: JoinTo<table>,
[src]
Join<Left, Right, Kind>: JoinTo<table>,
type FromClause = Join<Left, Right, Kind>
type OnClause = <Join<Left, Right, Kind> as JoinTo<table>>::OnClause
fn join_target(
rhs: Join<Left, Right, Kind>
) -> (Self::FromClause, Self::OnClause)
[src]
rhs: Join<Left, Right, Kind>
) -> (Self::FromClause, Self::OnClause)
impl<Join, On> JoinTo<JoinOn<Join, On>> for table where
JoinOn<Join, On>: JoinTo<table>,
[src]
JoinOn<Join, On>: JoinTo<table>,
type FromClause = JoinOn<Join, On>
type OnClause = <JoinOn<Join, On> as JoinTo<table>>::OnClause
fn join_target(rhs: JoinOn<Join, On>) -> (Self::FromClause, Self::OnClause)
[src]
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>,
[src]
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
fn join_target(
rhs: SelectStatement<F, S, D, W, O, L, Of, G>
) -> (Self::FromClause, Self::OnClause)
[src]
rhs: SelectStatement<F, S, D, W, O, L, Of, G>
) -> (Self::FromClause, Self::OnClause)
impl QueryId for table
[src]
type QueryId = table
A type which uniquely represents Self
in a SQL query. Read more
const HAS_STATIC_QUERY_ID: bool
[src]
fn query_id() -> Option<TypeId>
impl QuerySource for table
[src]
type FromClause = Identifier<'static>
The type returned by from_clause
type DefaultSelection = Self::AllColumns
The type returned by default_selection
fn from_clause(&self) -> Self::FromClause
[src]
fn default_selection(&self) -> Self::DefaultSelection
[src]
impl SelectableExpression<table> for star
[src]
impl SelectableExpression<table> for token
[src]
impl Table for table
[src]
type PrimaryKey = token
The type returned by primary_key
type AllColumns = (token,)
The type returned by all_columns
fn primary_key(&self) -> Self::PrimaryKey
[src]
fn all_columns() -> Self::AllColumns
[src]
impl<'insert> UndecoratedInsertRecord<table> for Session
[src]
Auto Trait Implementations
impl RefUnwindSafe for table
impl Send for table
impl Sync for table
impl Unpin for table
impl UnwindSafe for table
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> AsQuery for T where
T: Query,
T: Query,
type SqlType = <T as Query>::SqlType
The SQL type of Self::Query
type Query = T
What kind of query does this type represent?
pub fn as_query(self) -> <T as AsQuery>::Query
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<'a, T, DB> BoxedDsl<'a, DB> for T where
T: Table + AsQuery,
<T as AsQuery>::Query: BoxedDsl<'a, DB>,
T: Table + AsQuery,
<T as AsQuery>::Query: BoxedDsl<'a, DB>,
type Output = <<T as AsQuery>::Query as BoxedDsl<'a, DB>>::Output
The return type of internal_into_boxed
pub fn internal_into_boxed(self) -> <T as BoxedDsl<'a, DB>>::Output
impl<T> DistinctDsl for T where
T: Table,
<T as AsQuery>::Query: DistinctDsl,
T: Table,
<T as AsQuery>::Query: DistinctDsl,
type Output = <<T as AsQuery>::Query as DistinctDsl>::Output
The type returned by .distinct
pub fn distinct(self) -> <T as DistinctDsl>::Output
impl<T, Selection> DistinctOnDsl<Selection> for T where
Selection: SelectableExpression<T>,
T: Table,
<T as AsQuery>::Query: DistinctOnDsl<Selection>,
Selection: SelectableExpression<T>,
T: Table,
<T as AsQuery>::Query: DistinctOnDsl<Selection>,
type Output = <<T as AsQuery>::Query as DistinctOnDsl<Selection>>::Output
The type returned by .distinct_on
pub fn distinct_on(
self,
selection: Selection
) -> <T as DistinctOnDsl<Selection>>::Output
self,
selection: Selection
) -> <T as DistinctOnDsl<Selection>>::Output
impl<T, Predicate> FilterDsl<Predicate> for T where
T: Table,
<T as AsQuery>::Query: FilterDsl<Predicate>,
T: Table,
<T as AsQuery>::Query: FilterDsl<Predicate>,
type Output = <<T as AsQuery>::Query as FilterDsl<Predicate>>::Output
The type returned by .filter
.
pub fn filter(self, predicate: Predicate) -> <T as FilterDsl<Predicate>>::Output
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>,
T: Table + FilterDsl<<<T as Table>::PrimaryKey as EqAll<PK>>::Output>,
<T as Table>::PrimaryKey: EqAll<PK>,
type Output = <T as FilterDsl<<<T as Table>::PrimaryKey as EqAll<PK>>::Output>>::Output
The type returned by .find
.
pub fn find(self, id: PK) -> <T as FindDsl<PK>>::Output
impl<T> ForUpdateDsl for T where
T: LockingDsl<ForUpdate>,
T: LockingDsl<ForUpdate>,
type Output = <T as LockingDsl<ForUpdate>>::Output
use LockingDsl<ForUpdate>
instead
The type returned by for_update
. See dsl::ForUpdate
for
convenient access to this type. Read more
pub fn for_update(self) -> <T as ForUpdateDsl>::Output
impl<T> From<T> for T
[src]
impl<T, Expr> GroupByDsl<Expr> for T where
Expr: Expression,
T: Table + AsQuery,
<T as AsQuery>::Query: GroupByDsl<Expr>,
Expr: Expression,
T: Table + AsQuery,
<T as AsQuery>::Query: GroupByDsl<Expr>,
type Output = <<T as AsQuery>::Query as GroupByDsl<Expr>>::Output
The type returned by .group_by
pub fn group_by(self, expr: Expr) -> <T as GroupByDsl<Expr>>::Output
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> IntoSql for T
fn into_sql<T>(self) -> Self::Expression where
Self: AsExpression<T>,
Self: AsExpression<T>,
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression where
&'a Self: AsExpression<T>,
&'a Self: AsExpression<T>,
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,
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,
type WhereClause = V
What is the WHERE
clause of this target?
pub fn into_update_target(
self
) -> UpdateTarget<<T as HasTable>::Table, <T as IntoUpdateTarget>::WhereClause>
self
) -> UpdateTarget<<T as HasTable>::Table, <T as IntoUpdateTarget>::WhereClause>
impl<T> JoinOnDsl for T where
T: QuerySource,
T: QuerySource,
fn on<On>(self, on: On) -> OnClauseWrapper<Self, On>
impl<Lhs, Rhs, On> JoinTo<OnClauseWrapper<Rhs, On>> for Lhs where
Lhs: Table,
Lhs: Table,
type FromClause = Rhs
type OnClause = On
pub fn join_target(
rhs: OnClauseWrapper<Rhs, On>
) -> (<Lhs as JoinTo<OnClauseWrapper<Rhs, On>>>::FromClause, <Lhs as JoinTo<OnClauseWrapper<Rhs, On>>>::OnClause)
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,
T: Table,
<T as AsQuery>::Query: LimitDsl,
type Output = <<T as AsQuery>::Query as LimitDsl>::Output
The type returned by .limit
pub fn limit(self, limit: i64) -> <T as LimitDsl>::Output
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,
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,
pub fn internal_load(self, conn: &Conn) -> Result<Vec<U>, Error>
impl<T, Lock> LockingDsl<Lock> for T where
T: Table + AsQuery,
<T as AsQuery>::Query: LockingDsl<Lock>,
T: Table + AsQuery,
<T as AsQuery>::Query: LockingDsl<Lock>,
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
pub fn with_lock(self, lock: Lock) -> <T as LockingDsl<Lock>>::Output
impl<T> OffsetDsl for T where
T: Table,
<T as AsQuery>::Query: OffsetDsl,
T: Table,
<T as AsQuery>::Query: OffsetDsl,
type Output = <<T as AsQuery>::Query as OffsetDsl>::Output
The type returned by .offset
.
pub fn offset(self, offset: i64) -> <T as OffsetDsl>::Output
impl<T, Predicate> OrFilterDsl<Predicate> for T where
T: Table,
<T as AsQuery>::Query: OrFilterDsl<Predicate>,
T: Table,
<T as AsQuery>::Query: OrFilterDsl<Predicate>,
type Output = <<T as AsQuery>::Query as OrFilterDsl<Predicate>>::Output
The type returned by .filter
.
pub fn or_filter(
self,
predicate: Predicate
) -> <T as OrFilterDsl<Predicate>>::Output
self,
predicate: Predicate
) -> <T as OrFilterDsl<Predicate>>::Output
impl<T, Expr> OrderDsl<Expr> for T where
Expr: Expression,
T: Table,
<T as AsQuery>::Query: OrderDsl<Expr>,
Expr: Expression,
T: Table,
<T as AsQuery>::Query: OrderDsl<Expr>,
type Output = <<T as AsQuery>::Query as OrderDsl<Expr>>::Output
The type returned by .order
.
pub fn order(self, expr: Expr) -> <T as OrderDsl<Expr>>::Output
impl<T> QueryDsl for T where
T: Table,
T: Table,
fn distinct(self) -> Self::Output where
Self: DistinctDsl,
Self: DistinctDsl,
fn distinct_on<Expr>(self, expr: Expr) -> Self::Output where
Self: DistinctOnDsl<Expr>,
Self: DistinctOnDsl<Expr>,
fn select<Selection>(self, selection: Selection) -> Self::Output where
Selection: Expression,
Self: SelectDsl<Selection>,
Selection: Expression,
Self: SelectDsl<Selection>,
fn count(self) -> Self::Output where
Self: SelectDsl<CountStar>,
Self: SelectDsl<CountStar>,
fn inner_join<Rhs>(self, rhs: Rhs) -> Self::Output where
Self: JoinWithImplicitOnClause<Rhs, Inner>,
Self: JoinWithImplicitOnClause<Rhs, Inner>,
fn left_outer_join<Rhs>(self, rhs: Rhs) -> Self::Output where
Self: JoinWithImplicitOnClause<Rhs, LeftOuter>,
Self: JoinWithImplicitOnClause<Rhs, LeftOuter>,
fn left_join<Rhs>(self, rhs: Rhs) -> Self::Output where
Self: JoinWithImplicitOnClause<Rhs, LeftOuter>,
Self: JoinWithImplicitOnClause<Rhs, LeftOuter>,
fn filter<Predicate>(self, predicate: Predicate) -> Self::Output where
Self: FilterDsl<Predicate>,
Self: FilterDsl<Predicate>,
fn or_filter<Predicate>(self, predicate: Predicate) -> Self::Output where
Self: OrFilterDsl<Predicate>,
Self: OrFilterDsl<Predicate>,
fn find<PK>(self, id: PK) -> Self::Output where
Self: FindDsl<PK>,
Self: FindDsl<PK>,
fn order<Expr>(self, expr: Expr) -> Self::Output where
Expr: Expression,
Self: OrderDsl<Expr>,
Expr: Expression,
Self: OrderDsl<Expr>,
fn order_by<Expr>(self, expr: Expr) -> Self::Output where
Expr: Expression,
Self: OrderDsl<Expr>,
Expr: Expression,
Self: OrderDsl<Expr>,
fn then_order_by<Order>(self, order: Order) -> Self::Output where
Self: ThenOrderDsl<Order>,
Self: ThenOrderDsl<Order>,
fn limit(self, limit: i64) -> Self::Output where
Self: LimitDsl,
Self: LimitDsl,
fn offset(self, offset: i64) -> Self::Output where
Self: OffsetDsl,
Self: OffsetDsl,
fn for_update(self) -> Self::Output where
Self: ForUpdateDsl,
Self: ForUpdateDsl,
fn for_no_key_update(self) -> Self::Output where
Self: LockingDsl<ForNoKeyUpdate>,
Self: LockingDsl<ForNoKeyUpdate>,
fn for_share(self) -> Self::Output where
Self: LockingDsl<ForShare>,
Self: LockingDsl<ForShare>,
fn for_key_share(self) -> Self::Output where
Self: LockingDsl<ForKeyShare>,
Self: LockingDsl<ForKeyShare>,
fn skip_locked(self) -> Self::Output where
Self: ModifyLockDsl<SkipLocked>,
Self: ModifyLockDsl<SkipLocked>,
fn no_wait(self) -> Self::Output where
Self: ModifyLockDsl<NoWait>,
Self: ModifyLockDsl<NoWait>,
fn into_boxed<'a, DB>(self) -> Self::Output where
DB: Backend,
Self: BoxedDsl<'a, DB>,
DB: Backend,
Self: BoxedDsl<'a, DB>,
fn single_value(self) -> Self::Output where
Self: SingleValueDsl,
Self: SingleValueDsl,
fn nullable(self) -> Self::Output where
Self: SelectNullableDsl,
Self: SelectNullableDsl,
impl<T, Conn> RunQueryDsl<Conn> for T where
T: Table,
T: Table,
fn execute(self, conn: &Conn) -> Result<usize, Error> where
Conn: Connection,
Self: ExecuteDsl<Conn, <Conn as Connection>::Backend>,
Conn: Connection,
Self: ExecuteDsl<Conn, <Conn as Connection>::Backend>,
fn load<U>(self, conn: &Conn) -> Result<Vec<U>, Error> where
Self: LoadQuery<Conn, U>,
Self: LoadQuery<Conn, U>,
fn get_result<U>(self, conn: &Conn) -> Result<U, Error> where
Self: LoadQuery<Conn, U>,
Self: LoadQuery<Conn, U>,
fn get_results<U>(self, conn: &Conn) -> Result<Vec<U>, Error> where
Self: LoadQuery<Conn, U>,
Self: LoadQuery<Conn, U>,
fn first<U>(self, conn: &Conn) -> Result<U, Error> where
Self: LimitDsl,
Self::Output: LoadQuery<Conn, U>,
Self: LimitDsl,
Self::Output: LoadQuery<Conn, U>,
impl<T, Selection> SelectDsl<Selection> for T where
Selection: Expression,
T: Table,
<T as AsQuery>::Query: SelectDsl<Selection>,
Selection: Expression,
T: Table,
<T as AsQuery>::Query: SelectDsl<Selection>,
type Output = <<T as AsQuery>::Query as SelectDsl<Selection>>::Output
The type returned by .select
pub fn select(self, selection: Selection) -> <T as SelectDsl<Selection>>::Output
impl<T, Expr> ThenOrderDsl<Expr> for T where
Expr: Expression,
T: Table,
<T as AsQuery>::Query: ThenOrderDsl<Expr>,
Expr: Expression,
T: Table,
<T as AsQuery>::Query: ThenOrderDsl<Expr>,
type Output = <<T as AsQuery>::Query as ThenOrderDsl<Expr>>::Output
The type returned by .then_order_by
.
pub fn then_order_by(self, expr: Expr) -> <T as ThenOrderDsl<Expr>>::Output
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,