Enum sqlparser::ast::JsonOperator
source · pub enum JsonOperator {
Arrow,
LongArrow,
HashArrow,
HashLongArrow,
Colon,
AtArrow,
ArrowAt,
HashMinus,
AtQuestion,
AtAt,
}
Expand description
JsonOperator
Variants§
Arrow
-> keeps the value as json
LongArrow
->> keeps the value as text or int.
HashArrow
#> Extracts JSON sub-object at the specified path
HashLongArrow
#>> Extracts JSON sub-object at the specified path as text
Colon
: Colon is used by Snowflake (Which is similar to LongArrow)
AtArrow
jsonb @> jsonb -> boolean: Test whether left json contains the right json
ArrowAt
jsonb <@ jsonb -> boolean: Test whether right json contains the left json
HashMinus
jsonb #- text[] -> jsonb: Deletes the field or array element at the specified path, where path elements can be either field keys or array indexes.
AtQuestion
jsonb @? jsonpath -> boolean: Does JSON path return any item for the specified JSON value?
AtAt
jsonb @@ jsonpath → boolean: Returns the result of a JSON path predicate check for the specified JSON value. Only the first item of the result is taken into account. If the result is not Boolean, then NULL is returned.
Trait Implementations§
source§impl Clone for JsonOperator
impl Clone for JsonOperator
source§fn clone(&self) -> JsonOperator
fn clone(&self) -> JsonOperator
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for JsonOperator
impl Debug for JsonOperator
source§impl<'de> Deserialize<'de> for JsonOperator
impl<'de> Deserialize<'de> for JsonOperator
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
source§impl Display for JsonOperator
impl Display for JsonOperator
source§impl Hash for JsonOperator
impl Hash for JsonOperator
source§impl Ord for JsonOperator
impl Ord for JsonOperator
source§fn cmp(&self, other: &JsonOperator) -> Ordering
fn cmp(&self, other: &JsonOperator) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
source§impl PartialEq<JsonOperator> for JsonOperator
impl PartialEq<JsonOperator> for JsonOperator
source§fn eq(&self, other: &JsonOperator) -> bool
fn eq(&self, other: &JsonOperator) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<JsonOperator> for JsonOperator
impl PartialOrd<JsonOperator> for JsonOperator
source§fn partial_cmp(&self, other: &JsonOperator) -> Option<Ordering>
fn partial_cmp(&self, other: &JsonOperator) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read more