Struct lemmy_db_schema::schema::comment_report::table [−][src]
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
type Query = SelectStatement<Self>
type Query = SelectStatement<Self>
What kind of query does this type represent?
type WhereClause = <<Self as AsQuery>::Query as IntoUpdateTarget>::WhereClause
type WhereClause = <<Self as AsQuery>::Query as IntoUpdateTarget>::WhereClause
What is the WHERE
clause of this target?
Decomposes self
into the table and where clause.
impl<'a, QS, ST, DB> JoinTo<BoxedSelectStatement<'a, QS, ST, DB>> for table where
BoxedSelectStatement<'a, QS, ST, DB>: JoinTo<table>,
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
fn join_target(
rhs: BoxedSelectStatement<'a, QS, ST, DB>
) -> (Self::FromClause, Self::OnClause)
type FromClause = Join<Left, Right, Kind>
type FromClause = table
type OnClause = Eq<Nullable<resolver_id>, Nullable<<table as Table>::PrimaryKey>>
type FromClause = table
type OnClause = Eq<Nullable<resolver_id>, Nullable<<table as Table>::PrimaryKey>>
type FromClause = table
type OnClause = Eq<Nullable<comment_id>, Nullable<<table as Table>::PrimaryKey>>
type FromClause = table
type OnClause = Eq<Nullable<comment_id>, Nullable<<table as Table>::PrimaryKey>>
Can the SQL generated by Self
be uniquely identified by its type? Read more
type FromClause = Identifier<'static>
type FromClause = Identifier<'static>
The type returned by from_clause
type DefaultSelection = <Self as Table>::AllColumns
type DefaultSelection = <Self as Table>::AllColumns
The type returned by default_selection
The actual FROM
clause of this type. This is typically only called in
QueryFragment
implementations. Read more
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
Read more
type PrimaryKey = id
type PrimaryKey = id
The type returned by primary_key
type AllColumns = (id, creator_id, comment_id, original_comment_text, reason, resolved, resolver_id, published, updated)
type AllColumns = (id, creator_id, comment_id, original_comment_text, reason, resolved, resolver_id, published, updated)
The type returned by all_columns
Returns the primary key of this table. Read more
Returns a tuple of all columns belonging to this table.
Auto Trait Implementations
impl RefUnwindSafe for table
impl UnwindSafe for table
Blanket Implementations
Mutably borrows from an owned value. Read more
type Output = <T as LockingDsl<ForUpdate>>::Output
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
use LockingDsl<ForUpdate>
instead
See the trait level documentation
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>,
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression where
&'a Self: AsExpression<T>,
Convert &self
to an expression for Diesel’s query builder. Read more
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)
Adds the DISTINCT
keyword to a query. Read more
Adds the DISTINCT ON
clause to a query. Read more
fn select<Selection>(self, selection: Selection) -> Self::Output where
Self: SelectDsl<Selection>,
Selection: Expression,
fn select<Selection>(self, selection: Selection) -> Self::Output where
Self: SelectDsl<Selection>,
Selection: Expression,
Adds a SELECT
clause to the query. Read more
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>,
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>,
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
Alias for left_outer_join
. Read more
Adds to the WHERE
clause of a query. Read more
fn or_filter<Predicate>(self, predicate: Predicate) -> Self::Output where
Self: OrFilterDsl<Predicate>,
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
Attempts to find a single record from the given table by primary key. Read more
Sets the order clause of a query. Read more
fn order_by<Expr>(self, expr: Expr) -> Self::Output where
Self: OrderDsl<Expr>,
Expr: Expression,
fn order_by<Expr>(self, expr: Expr) -> Self::Output where
Self: OrderDsl<Expr>,
Expr: Expression,
Alias for order
Appends to the ORDER BY
clause of this SQL query. Read more
Sets the limit clause of the query. Read more
Sets the offset clause of the query. Read more
Adds FOR UPDATE
to the end of the select statement. Read more
Adds FOR NO KEY UPDATE
to the end of the select statement. Read more
Adds FOR SHARE
to the end of the select statement. Read more
Adds FOR KEY SHARE
to the end of the select statement. Read more
Adds SKIP LOCKED
to the end of a FOR UPDATE
clause. Read more
Adds NOWAIT
to the end of a FOR UPDATE
clause. Read more
Boxes the pieces of a query into a single type. Read more
Wraps this select statement in parenthesis, allowing it to be used as an expression. Read more
Coerce the SQL type of the select clause to it’s nullable equivalent. Read more
fn execute(self, conn: &Conn) -> Result<usize, Error> where
Self: ExecuteDsl<Conn, <Conn as Connection>::Backend>,
Conn: Connection,
fn execute(self, conn: &Conn) -> Result<usize, Error> where
Self: ExecuteDsl<Conn, <Conn as Connection>::Backend>,
Conn: Connection,
Executes the given command, returning the number of rows affected. Read more
Executes the given query, returning a Vec
with the returned rows. Read more
Runs the command, and returns the affected row. Read more
Runs the command, returning an Vec
with the affected rows. Read more