Update pg_ops.cljc

Add docstring info to @@ operator pertaining to its text search usage
This commit is contained in:
Ben Lieberman 2024-07-14 09:43:28 -06:00 committed by GitHub
parent 669fee5bc8
commit b531747918
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -55,8 +55,10 @@
(def hash- "The #- operator - deletes the field or array element at the specified path, where path elements can be either field keys or array indexes." :#-) (def hash- "The #- operator - deletes the field or array element at the specified path, where path elements can be either field keys or array indexes." :#-)
(def at? "The @? operator - does JSON path return any item for the specified JSON value?" (keyword "@?")) (def at? "The @? operator - does JSON path return any item for the specified JSON value?" (keyword "@?"))
(def atat (def atat
"The @@ operator - returns the result of a JSON path predicate check for the specified JSON value. "The @@ operator:
Only the first item of the result is taken into account. If the result is not Boolean, then NULL is returned." - 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.
- checks if a text search vector (or a text value implicitly converted to a text search vector) matches a text search query. Returns a Boolean."
(keyword "@@")) (keyword "@@"))
(def tilde "The case-sensitive regex match operator." (keyword "~")) (def tilde "The case-sensitive regex match operator." (keyword "~"))