Struct grafbase_sql_ast::ast::Row
source · pub struct Row<'a> {
pub values: Vec<Expression<'a>>,
}
Expand description
A collection of values surrounded by parentheses.
Fields§
§values: Vec<Expression<'a>>
Implementations§
Trait Implementations§
source§impl<'a> Comparable<'a> for Row<'a>
impl<'a> Comparable<'a> for Row<'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, A, B> From<(A, B)> for Row<'a>where
A: Into<Expression<'a>>,
B: Into<Expression<'a>>,
impl<'a, A, B> From<(A, B)> for Row<'a>where A: Into<Expression<'a>>, B: Into<Expression<'a>>,
source§impl<'a, A, B, C> From<(A, B, C)> for Row<'a>where
A: Into<Expression<'a>>,
B: Into<Expression<'a>>,
C: Into<Expression<'a>>,
impl<'a, A, B, C> From<(A, B, C)> for Row<'a>where A: Into<Expression<'a>>, B: Into<Expression<'a>>, C: Into<Expression<'a>>,
source§impl<'a, A, B, C, D> From<(A, B, C, D)> for Row<'a>where
A: Into<Expression<'a>>,
B: Into<Expression<'a>>,
C: Into<Expression<'a>>,
D: Into<Expression<'a>>,
impl<'a, A, B, C, D> From<(A, B, C, D)> for Row<'a>where A: Into<Expression<'a>>, B: Into<Expression<'a>>, C: Into<Expression<'a>>, D: Into<Expression<'a>>,
source§fn from(vals: (A, B, C, D)) -> Self
fn from(vals: (A, B, C, D)) -> Self
Converts to this type from the input type.
source§impl<'a, A, B, C, D, E> From<(A, B, C, D, E)> for Row<'a>where
A: Into<Expression<'a>>,
B: Into<Expression<'a>>,
C: Into<Expression<'a>>,
D: Into<Expression<'a>>,
E: Into<Expression<'a>>,
impl<'a, A, B, C, D, E> From<(A, B, C, D, E)> for Row<'a>where A: Into<Expression<'a>>, B: Into<Expression<'a>>, C: Into<Expression<'a>>, D: Into<Expression<'a>>, E: Into<Expression<'a>>,
source§fn from(vals: (A, B, C, D, E)) -> Self
fn from(vals: (A, B, C, D, E)) -> Self
Converts to this type from the input type.
source§impl<'a> From<Row<'a>> for Expression<'a>
impl<'a> From<Row<'a>> for Expression<'a>
source§impl<'a> IntoIterator for Row<'a>
impl<'a> IntoIterator for Row<'a>
source§impl<'a> PartialEq<Row<'a>> for Row<'a>
impl<'a> PartialEq<Row<'a>> for Row<'a>
impl<'a> StructuralPartialEq for Row<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for Row<'a>
impl<'a> Send for Row<'a>
impl<'a> Sync for Row<'a>
impl<'a> Unpin for Row<'a>
impl<'a> UnwindSafe for Row<'a>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<'a, T> Conjunctive<'a> for Twhere
T: Into<Expression<'a>>,
impl<'a, T> Conjunctive<'a> for Twhere T: Into<Expression<'a>>,
source§fn and<E>(self, other: E) -> ConditionTree<'a>where
E: Into<Expression<'a>>,
fn and<E>(self, other: E) -> ConditionTree<'a>where E: Into<Expression<'a>>,
Builds an
AND
condition having self
as the left leaf and other
as the right.source§fn or<E>(self, other: E) -> ConditionTree<'a>where
E: Into<Expression<'a>>,
fn or<E>(self, other: E) -> ConditionTree<'a>where E: Into<Expression<'a>>,
Builds an
OR
condition having self
as the left leaf and other
as the right.source§fn not(self) -> ConditionTree<'a>
fn not(self) -> ConditionTree<'a>
Builds a
NOT
condition having self
as the condition.