Type Alias grafbase_sql_ast::ast::GroupByDefinition
source · pub type GroupByDefinition<'a> = Expression<'a>;
Expand description
Defines a grouping for the GROUP BY
statement.
Aliased Type§
struct GroupByDefinition<'a> { /* private fields */ }
Implementations§
source§impl<'a> Expression<'a>
impl<'a> Expression<'a>
Trait Implementations§
source§impl<'a> Add<Expression<'a>> for Expression<'a>
impl<'a> Add<Expression<'a>> for Expression<'a>
source§impl<'a> Aliasable<'a> for Expression<'a>
impl<'a> Aliasable<'a> for Expression<'a>
source§impl<'a> Clone for Expression<'a>
impl<'a> Clone for Expression<'a>
source§fn clone(&self) -> Expression<'a>
fn clone(&self) -> Expression<'a>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<'a> Comparable<'a> for Expression<'a>
impl<'a> Comparable<'a> for Expression<'a>
source§fn equals<T>(self, comparison: T) -> Compare<'a>where
T: Into<Expression<'a>>,
fn equals<T>(self, comparison: T) -> Compare<'a>where T: Into<Expression<'a>>,
Tests if both sides are the same value.
source§fn not_equals<T>(self, comparison: T) -> Compare<'a>where
T: Into<Expression<'a>>,
fn not_equals<T>(self, comparison: T) -> Compare<'a>where T: Into<Expression<'a>>,
Tests if both sides are not the same value.
source§fn less_than<T>(self, comparison: T) -> Compare<'a>where
T: Into<Expression<'a>>,
fn less_than<T>(self, comparison: T) -> Compare<'a>where T: Into<Expression<'a>>,
Tests if the left side is smaller than the right side.
source§fn less_than_or_equals<T>(self, comparison: T) -> Compare<'a>where
T: Into<Expression<'a>>,
fn less_than_or_equals<T>(self, comparison: T) -> Compare<'a>where T: Into<Expression<'a>>,
Tests if the left side is smaller than the right side or the same.
source§fn greater_than<T>(self, comparison: T) -> Compare<'a>where
T: Into<Expression<'a>>,
fn greater_than<T>(self, comparison: T) -> Compare<'a>where T: Into<Expression<'a>>,
Tests if the left side is bigger than the right side.
source§fn greater_than_or_equals<T>(self, comparison: T) -> Compare<'a>where
T: Into<Expression<'a>>,
fn greater_than_or_equals<T>(self, comparison: T) -> Compare<'a>where T: Into<Expression<'a>>,
Tests if the left side is bigger than the right side or the same.
source§fn in_selection<T>(self, selection: T) -> Compare<'a>where
T: Into<Expression<'a>>,
fn in_selection<T>(self, selection: T) -> Compare<'a>where T: Into<Expression<'a>>,
Tests if the left side is included in the right side collection.
source§fn not_in_selection<T>(self, selection: T) -> Compare<'a>where
T: Into<Expression<'a>>,
fn not_in_selection<T>(self, selection: T) -> Compare<'a>where T: Into<Expression<'a>>,
Tests if the left side is not included in the right side collection.
source§fn like<T>(self, pattern: T) -> Compare<'a>where
T: Into<Expression<'a>>,
fn like<T>(self, pattern: T) -> Compare<'a>where T: Into<Expression<'a>>,
Tests if the left side includes the right side string.
source§fn not_like<T>(self, pattern: T) -> Compare<'a>where
T: Into<Expression<'a>>,
fn not_like<T>(self, pattern: T) -> Compare<'a>where T: Into<Expression<'a>>,
Tests if the left side does not include the right side string.
source§fn is_not_null(self) -> Compare<'a>
fn is_not_null(self) -> Compare<'a>
Tests if the left side is not
NULL
.source§fn between<T, V>(self, left: T, right: V) -> Compare<'a>where
T: Into<Expression<'a>>,
V: Into<Expression<'a>>,
fn between<T, V>(self, left: T, right: V) -> Compare<'a>where T: Into<Expression<'a>>, V: Into<Expression<'a>>,
Tests if the value is between two given values.
source§fn not_between<T, V>(self, left: T, right: V) -> Compare<'a>where
T: Into<Expression<'a>>,
V: Into<Expression<'a>>,
fn not_between<T, V>(self, left: T, right: V) -> Compare<'a>where T: Into<Expression<'a>>, V: Into<Expression<'a>>,
Tests if the value is not between two given values.
source§fn compare_raw<T, V>(self, raw_comparator: T, right: V) -> Compare<'a>where
T: Into<Cow<'a, str>>,
V: Into<Expression<'a>>,
fn compare_raw<T, V>(self, raw_comparator: T, right: V) -> Compare<'a>where T: Into<Cow<'a, str>>, V: Into<Expression<'a>>,
Compares two expressions with a custom operator.
source§fn json_array_contains<T>(self, item: T) -> Compare<'a>where
T: Into<Expression<'a>>,
fn json_array_contains<T>(self, item: T) -> Compare<'a>where T: Into<Expression<'a>>,
Tests if the JSON array contains a value.
source§fn json_array_not_contains<T>(self, item: T) -> Compare<'a>where
T: Into<Expression<'a>>,
fn json_array_not_contains<T>(self, item: T) -> Compare<'a>where T: Into<Expression<'a>>,
Tests if the JSON array does not contain a value.
source§fn json_array_begins_with<T>(self, item: T) -> Compare<'a>where
T: Into<Expression<'a>>,
fn json_array_begins_with<T>(self, item: T) -> Compare<'a>where T: Into<Expression<'a>>,
Tests if the JSON array starts with a value.
source§fn json_array_not_begins_with<T>(self, item: T) -> Compare<'a>where
T: Into<Expression<'a>>,
fn json_array_not_begins_with<T>(self, item: T) -> Compare<'a>where T: Into<Expression<'a>>,
Tests if the JSON array does not start with a value.
source§fn json_array_ends_into<T>(self, item: T) -> Compare<'a>where
T: Into<Expression<'a>>,
fn json_array_ends_into<T>(self, item: T) -> Compare<'a>where T: Into<Expression<'a>>,
Tests if the JSON array ends with a value.
source§fn json_array_not_ends_into<T>(self, item: T) -> Compare<'a>where
T: Into<Expression<'a>>,
fn json_array_not_ends_into<T>(self, item: T) -> Compare<'a>where T: Into<Expression<'a>>,
Tests if the JSON array does not end with a value.
source§fn json_type_equals<T>(self, json_type: T) -> Compare<'a>where
T: Into<JsonType<'a>>,
fn json_type_equals<T>(self, json_type: T) -> Compare<'a>where T: Into<JsonType<'a>>,
Tests if the JSON value is of a certain type.
source§impl<'a> Debug for Expression<'a>
impl<'a> Debug for Expression<'a>
source§impl<'a> Div<Expression<'a>> for Expression<'a>
impl<'a> Div<Expression<'a>> for Expression<'a>
source§impl<'a> From<Column<'a>> for Expression<'a>
impl<'a> From<Column<'a>> for Expression<'a>
source§impl<'a> From<Compare<'a>> for Expression<'a>
impl<'a> From<Compare<'a>> for Expression<'a>
source§impl<'a> From<ConditionTree<'a>> for Expression<'a>
impl<'a> From<ConditionTree<'a>> for Expression<'a>
source§fn from(ct: ConditionTree<'a>) -> Self
fn from(ct: ConditionTree<'a>) -> Self
Converts to this type from the input type.
source§impl<'a> From<ExpressionKind<'a>> for Expression<'a>
impl<'a> From<ExpressionKind<'a>> for Expression<'a>
source§fn from(kind: ExpressionKind<'a>) -> Self
fn from(kind: ExpressionKind<'a>) -> Self
Converts to this type from the input type.
source§impl<'a> From<Function<'a>> for Expression<'a>
impl<'a> From<Function<'a>> for Expression<'a>
source§impl<'a> From<Row<'a>> for Expression<'a>
impl<'a> From<Row<'a>> for Expression<'a>
source§impl<'a> From<Select<'a>> for Expression<'a>
impl<'a> From<Select<'a>> for Expression<'a>
source§fn from(sel: Select<'a>) -> Expression<'a>
fn from(sel: Select<'a>) -> Expression<'a>
Converts to this type from the input type.
source§impl<'a> From<SqlOp<'a>> for Expression<'a>
impl<'a> From<SqlOp<'a>> for Expression<'a>
source§impl<'a> From<Table<'a>> for Expression<'a>
impl<'a> From<Table<'a>> for Expression<'a>
source§impl<'a> From<Values<'a>> for Expression<'a>
impl<'a> From<Values<'a>> for Expression<'a>
source§impl<'a> IntoGroupByDefinition<'a> for GroupByDefinition<'a>
impl<'a> IntoGroupByDefinition<'a> for GroupByDefinition<'a>
fn into_group_by_definition(self) -> GroupByDefinition<'a>
source§impl<'a> Mul<Expression<'a>> for Expression<'a>
impl<'a> Mul<Expression<'a>> for Expression<'a>
source§impl<'a> PartialEq<Expression<'a>> for Expression<'a>
impl<'a> PartialEq<Expression<'a>> for Expression<'a>
source§fn eq(&self, other: &Expression<'a>) -> bool
fn eq(&self, other: &Expression<'a>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.