Skip to main content

jsonb_contains

Function jsonb_contains 

Source
pub fn jsonb_contains(left: &[u8], right: &[u8]) -> Option<bool>
Expand description

Check whether JSONB left contains right (PostgreSQL @> semantics).

An object contains another if every key in right exists in left with a matching value. An array contains another if it’s a superset. Scalars match by equality.