Enum databend_common_ast::ast::JsonOperator
source · pub enum JsonOperator {
Arrow,
LongArrow,
HashArrow,
HashLongArrow,
Question,
QuestionOr,
QuestionAnd,
AtArrow,
ArrowAt,
AtQuestion,
AtAt,
HashMinus,
}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
Question
? Checks whether text key exist as top-level key or array element.
QuestionOr
?| Checks whether any of the text keys exist as top-level keys or array elements.
QuestionAnd
?& Checks whether all of the text keys exist as top-level keys or array elements.
AtArrow
@> Checks whether left json contains the right json
ArrowAt
<@ Checks whether right json contains the left json
AtQuestion
@? Checks whether JSON path return any item for the specified JSON value
AtAt
@@ Returns the result of a JSON path predicate check for the specified JSON value.
HashMinus
#- Deletes the field or array element at the specified keypath.
Implementations§
source§impl JsonOperator
impl JsonOperator
pub fn to_func_name(&self) -> String
Trait Implementations§
source§impl Clone for JsonOperator
impl Clone for JsonOperator
source§fn clone(&self) -> JsonOperator
fn clone(&self) -> JsonOperator
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 Debug for JsonOperator
impl Debug for JsonOperator
source§impl Display for JsonOperator
impl Display for JsonOperator
source§impl DriveMut for JsonOperator
impl DriveMut for JsonOperator
fn drive_mut<V: VisitorMut>(&mut self, visitor: &mut V)
source§impl PartialEq for JsonOperator
impl PartialEq for JsonOperator
impl Eq for JsonOperator
impl StructuralPartialEq for JsonOperator
Auto Trait Implementations§
impl Freeze for JsonOperator
impl RefUnwindSafe for JsonOperator
impl Send for JsonOperator
impl Sync for JsonOperator
impl Unpin for JsonOperator
impl UnwindSafe for JsonOperator
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more