From b531747918b913d426eb7a172760f7581e3986de Mon Sep 17 00:00:00 2001 From: Ben Lieberman <60364696+bhlieberman@users.noreply.github.com> Date: Sun, 14 Jul 2024 09:43:28 -0600 Subject: [PATCH] Update pg_ops.cljc Add docstring info to @@ operator pertaining to its text search usage --- src/honey/sql/pg_ops.cljc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/honey/sql/pg_ops.cljc b/src/honey/sql/pg_ops.cljc index cf7a4fc..62021ec 100644 --- a/src/honey/sql/pg_ops.cljc +++ b/src/honey/sql/pg_ops.cljc @@ -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 "~"))