[]Struct kubos_telemetry_db::telemetry::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[+]

impl Copy for table

impl Debug for table[+]

impl Table for table[+]

type PrimaryKey = timestamp

The type returned by primary_key

type AllColumns = (timestamp, subsystem, parameter, value)

The type returned by all_columns

impl SelectableExpression<table> for star

impl SelectableExpression<table> for timestamp

impl SelectableExpression<table> for subsystem

impl SelectableExpression<table> for parameter

impl SelectableExpression<table> for value

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<'insert> Insertable<table> for Entry[src][+]

type Values = <(Option<Eq<timestamp, f64>>, Option<Eq<subsystem, String>>, Option<Eq<parameter, String>>, Option<Eq<value, String>>) as Insertable<table>>::Values

The VALUES clause to insert these records Read more

impl<'insert> Insertable<table> for &'insert Entry[src][+]

type Values = <(Option<Eq<timestamp, &'insert f64>>, Option<Eq<subsystem, &'insert String>>, Option<Eq<parameter, &'insert String>>, Option<Eq<value, &'insert String>>) as Insertable<table>>::Values

The VALUES clause to insert these records Read more

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

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

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 HasTable for table[+]

type Table = Self

The table this type is associated with.

impl AppearsOnTable<table> for star

impl QueryId for table[+]

type QueryId = table

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

impl<'insert> UndecoratedInsertRecord<table> for Entry[src]

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 Send for table

impl Unpin for table

impl Sync for table

impl UnwindSafe for table

impl RefUnwindSafe for table

Blanket Implementations

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

type Owned = T

The resulting type after obtaining ownership.

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

impl<T> From<T> for 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> JoinOnDsl for T where
    T: QuerySource, 
[+]

impl<T> IntoSql for T[+]

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

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

The type returned by .filter.

impl<T, Expr> GroupByDsl<Expr> for T where
    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

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

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

type FromClause = Rhs

type OnClause = On

impl<T> QueryDsl for T where
    T: Table, 
[+]

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

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

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

The type returned by .select

impl<T> AsQuery for T where
    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?

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

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

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

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

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

The type returned by .find.

impl<T, Expr> OrderDsl<Expr> for T where
    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.

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

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

The type returned by .distinct

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

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

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, Predicate> OrFilterDsl<Predicate> for T where
    T: Table,
    <T as AsQuery>::Query: OrFilterDsl<Predicate>, 
[+]

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

The type returned by .filter.

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.

impl<T, Expr> ThenOrderDsl<Expr> for T where
    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.