class Clear::Expression::Node::JSONB::Equality

Overview

Define a value match? (@>) operation between a jsonb column and a json hash

Included Modules

Defined in:

clear/extensions/jsonb/expression.cr

Constructors

Instance Method Summary

Instance methods inherited from module Clear::SQL::JSONB

jsonb_all_exists?(field, keys : Array(String)) jsonb_all_exists?, jsonb_any_exists?(field, keys : Array(String)) jsonb_any_exists?, jsonb_eq(field, key, value) jsonb_eq, jsonb_exists?(field, value) jsonb_exists?, jsonb_k2h(key : String, value : JSONBKey) : JSONBHash jsonb_k2h, jsonb_resolve(field, arr : Array(String), cast = nil) : String
jsonb_resolve(field, key : String, cast = nil)
jsonb_resolve

Instance methods inherited from class Clear::Expression::Node

!=(any : Node) : Node
!=(any : T) : Node forall T
!=(some_nil : Nil) : Node
!=
, !~(regexp : Regex) : Node
!~(any : Node) : Node
!~
, &(any : T) : Node forall T
&(any : Node) : Node
&
, *(any : T) : Node forall T
*(any : Node) : Node
*
, +(any : Node) : Node
+(any : T) : Node forall T
+
, -
-(any : T) : Node forall T
-(any : Node) : Node
-
, /(any : Node) : Node
/(any : T) : Node forall T
/
, <(any : T) : Node forall T
<(any : Node) : Node
<
, <=(any : T) : Node forall T
<=(any : Node) : Node
<=
, ==(some_nil : Nil) : Node
==(any : T) : Node forall T
==(any : Node) : Node
==
, =~(any : Node) : Node
=~(regexp : Regex) : Node
=~
, >(any : Node) : Node
>(any : T) : Node forall T
>
, >=(any : T) : Node forall T
>=(any : Node) : Node
>=
, between(a, b) between, ilike(any : Node) : Node
ilike(any : T) : Node forall T
ilike
, in?(request : Clear::SQL::SelectBuilder)
in?(range : Range(B, E)) forall B, E
in?(arr : Array(T)) forall T
in?(tuple : Tuple(*T)) forall T
in?
, like(any : Node) : Node
like(any : T) : Node forall T
like
, resolve : String resolve, |(any : T) : Node forall T
|(any : Node) : Node
|
, ~ ~

Instance methods inherited from module Clear::Expression::JSONB::Node

jsonb(key : String) jsonb, jsonb_all_keys_exists?(keys : Array(T)) forall T jsonb_all_keys_exists?, jsonb_any_key_exists?(keys : Array(T)) forall T jsonb_any_key_exists?, jsonb_key_exists?(key : String) jsonb_key_exists?

Constructor Detail

def self.new(jsonb_field, value) #

[View source]

Instance Method Detail

def jsonb_field : String #

[View source]
def resolve : String #

[View source]
def value : JSONBHash #

[View source]