Struct leetcode_cli::cache::schemas::problems::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 Values = <(Option<Eq<category, String>>, Option<Eq<fid, i32>>, Option<Eq<id, i32>>, Option<Eq<level, i32>>, Option<Eq<locked, bool>>, Option<Eq<name, String>>, Option<Eq<percent, f32>>, Option<Eq<slug, String>>, Option<Eq<starred, bool>>, Option<Eq<status, String>>, Option<Eq<desc, String>>) as Insertable<table>>::Values
type Values = <(Option<Eq<category, String>>, Option<Eq<fid, i32>>, Option<Eq<id, i32>>, Option<Eq<level, i32>>, Option<Eq<locked, bool>>, Option<Eq<name, String>>, Option<Eq<percent, f32>>, Option<Eq<slug, String>>, Option<Eq<starred, bool>>, Option<Eq<status, String>>, Option<Eq<desc, String>>) as Insertable<table>>::Values
The VALUES clause to insert these records Read more
Insert self into a given table. Read more
type Values = <(Option<Eq<category, &'insert String>>, Option<Eq<fid, &'insert i32>>, Option<Eq<id, &'insert i32>>, Option<Eq<level, &'insert i32>>, Option<Eq<locked, &'insert bool>>, Option<Eq<name, &'insert String>>, Option<Eq<percent, &'insert f32>>, Option<Eq<slug, &'insert String>>, Option<Eq<starred, &'insert bool>>, Option<Eq<status, &'insert String>>, Option<Eq<desc, &'insert String>>) as Insertable<table>>::Values
type Values = <(Option<Eq<category, &'insert String>>, Option<Eq<fid, &'insert i32>>, Option<Eq<id, &'insert i32>>, Option<Eq<level, &'insert i32>>, Option<Eq<locked, &'insert bool>>, Option<Eq<name, &'insert String>>, Option<Eq<percent, &'insert f32>>, Option<Eq<slug, &'insert String>>, Option<Eq<starred, &'insert bool>>, Option<Eq<status, &'insert String>>, Option<Eq<desc, &'insert String>>) as Insertable<table>>::Values
The VALUES clause to insert these records Read more
Insert self into a given table. Read more
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.
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
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.
impl<'a, QS, ST, DB> JoinTo<BoxedSelectStatement<'a, QS, ST, DB>> for table where
BoxedSelectStatement<'a, QS, ST, DB>: JoinTo<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
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more
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
fn select<Selection>(self, selection: Selection) -> Self::Output where
Selection: Expression,
Self: SelectDsl<Selection>,
fn select<Selection>(self, selection: Selection) -> Self::Output where
Selection: Expression,
Self: SelectDsl<Selection>,
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
Expr: Expression,
Self: OrderDsl<Expr>,
fn order_by<Expr>(self, expr: Expr) -> Self::Output where
Expr: Expression,
Self: OrderDsl<Expr>,
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
Conn: Connection,
Self: ExecuteDsl<Conn, <Conn as Connection>::Backend>,
fn execute(self, conn: &Conn) -> Result<usize, Error> where
Conn: Connection,
Self: ExecuteDsl<Conn, <Conn as Connection>::Backend>,
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
pub fn vzip(self) -> V
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more
