Skip to content

Commit

Permalink
Update pg_ops.cljc
Browse files Browse the repository at this point in the history
Add docstring info to @@ operator pertaining to its text search usage
  • Loading branch information
bhlieberman authored Jul 14, 2024
1 parent 669fee5 commit b531747
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/honey/sql/pg_ops.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -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 at? "The @? operator - does JSON path return any item for the specified JSON value?" (keyword "@?"))
(def atat
"The @@ operator - 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."
"The @@ operator:
- 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 "@@"))

(def tilde "The case-sensitive regex match operator." (keyword "~"))
Expand Down

0 comments on commit b531747

Please sign in to comment.