2020-- ! the given selector path. Returns all matching encrypted elements. If multiple
2121-- ! matches form an array, they are wrapped with array metadata.
2222-- !
23- -- ! @param val jsonb Encrypted JSONB payload containing STE vector ('sv')
24- -- ! @param selector text Path selector to match against encrypted elements
23+ -- ! @param jsonb Encrypted JSONB payload containing STE vector ('sv')
24+ -- ! @param text Path selector to match against encrypted elements
2525-- ! @return SETOF eql_v2_encrypted Matching encrypted elements (may return multiple rows)
2626-- !
2727-- ! @note Returns empty set if selector is not found (does not throw exception)
@@ -109,8 +109,8 @@ $$ LANGUAGE plpgsql;
109109-- ! Overload that accepts encrypted JSONB value and text selector,
110110-- ! extracting the JSONB payload before querying.
111111-- !
112- -- ! @param val eql_v2_encrypted Encrypted JSONB value to query
113- -- ! @param selector text Path selector to match against
112+ -- ! @param eql_v2_encrypted Encrypted JSONB value to query
113+ -- ! @param text Path selector to match against
114114-- ! @return SETOF eql_v2_encrypted Matching encrypted elements
115115-- !
116116-- ! @example
@@ -137,8 +137,8 @@ $$ LANGUAGE plpgsql;
137137-- ! Tests whether any encrypted elements match the given selector path.
138138-- ! More efficient than jsonb_path_query when only existence check is needed.
139139-- !
140- -- ! @param val jsonb Encrypted JSONB payload to check
141- -- ! @param selector text Path selector to test
140+ -- ! @param jsonb Encrypted JSONB payload to check
141+ -- ! @param text Path selector to test
142142-- ! @return boolean True if matching element exists, false otherwise
143143-- !
144144-- ! @see eql_v2.jsonb_path_query(jsonb, text)
@@ -180,8 +180,8 @@ $$ LANGUAGE plpgsql;
180180-- !
181181-- ! Overload that accepts encrypted JSONB value and text selector.
182182-- !
183- -- ! @param val eql_v2_encrypted Encrypted JSONB value to check
184- -- ! @param selector text Path selector to test
183+ -- ! @param eql_v2_encrypted Encrypted JSONB value to check
184+ -- ! @param text Path selector to test
185185-- ! @return boolean True if path exists
186186-- !
187187-- ! @example
@@ -210,8 +210,8 @@ $$ LANGUAGE plpgsql;
210210-- ! or NULL if no match found. More efficient than jsonb_path_query when
211211-- ! only one result is needed.
212212-- !
213- -- ! @param val jsonb Encrypted JSONB payload to query
214- -- ! @param selector text Path selector to match
213+ -- ! @param jsonb Encrypted JSONB payload to query
214+ -- ! @param text Path selector to match
215215-- ! @return eql_v2_encrypted First matching element or NULL
216216-- !
217217-- ! @note Uses LIMIT 1 internally for efficiency
@@ -258,8 +258,8 @@ $$ LANGUAGE plpgsql;
258258-- !
259259-- ! Overload that accepts encrypted JSONB value and text selector.
260260-- !
261- -- ! @param val eql_v2_encrypted Encrypted JSONB value to query
262- -- ! @param selector text Path selector to match
261+ -- ! @param eql_v2_encrypted Encrypted JSONB value to query
262+ -- ! @param text Path selector to match
263263-- ! @return eql_v2_encrypted First matching element or NULL
264264-- !
265265-- ! @example
@@ -291,7 +291,7 @@ $$ LANGUAGE plpgsql;
291291-- ! elements in the STE vector ('sv'). The encrypted value must have the
292292-- ! array flag ('a') set to true.
293293-- !
294- -- ! @param val jsonb Encrypted JSONB payload representing an array
294+ -- ! @param jsonb Encrypted JSONB payload representing an array
295295-- ! @return integer Number of elements in the array
296296-- ! @throws Exception 'cannot get array length of a non-array' if 'a' flag is missing or not true
297297-- !
@@ -325,7 +325,7 @@ $$ LANGUAGE plpgsql;
325325-- ! Overload that accepts encrypted composite type and extracts the
326326-- ! JSONB payload before computing array length.
327327-- !
328- -- ! @param val eql_v2_encrypted Encrypted array value
328+ -- ! @param eql_v2_encrypted Encrypted array value
329329-- ! @return integer Number of elements in the array
330330-- ! @throws Exception if value is not an array
331331-- !
@@ -354,7 +354,7 @@ $$ LANGUAGE plpgsql;
354354-- ! Each element is returned as an eql_v2_encrypted value with metadata
355355-- ! preserved from the parent array.
356356-- !
357- -- ! @param val jsonb Encrypted JSONB payload representing an array
357+ -- ! @param jsonb Encrypted JSONB payload representing an array
358358-- ! @return SETOF eql_v2_encrypted One row per array element
359359-- ! @throws Exception if value is not an array (missing 'a' flag)
360360-- !
@@ -395,7 +395,7 @@ $$ LANGUAGE plpgsql;
395395-- ! Overload that accepts encrypted composite type and extracts each
396396-- ! array element as a separate row.
397397-- !
398- -- ! @param val eql_v2_encrypted Encrypted array value
398+ -- ! @param eql_v2_encrypted Encrypted array value
399399-- ! @return SETOF eql_v2_encrypted One row per array element
400400-- ! @throws Exception if value is not an array
401401-- !
@@ -422,7 +422,7 @@ $$ LANGUAGE plpgsql;
422422-- ! value (text representation). Unlike jsonb_array_elements, this returns
423423-- ! only the ciphertext 'c' field without metadata.
424424-- !
425- -- ! @param val jsonb Encrypted JSONB payload representing an array
425+ -- ! @param jsonb Encrypted JSONB payload representing an array
426426-- ! @return SETOF text One ciphertext string per array element
427427-- ! @throws Exception if value is not an array (missing 'a' flag)
428428-- !
@@ -456,7 +456,7 @@ $$ LANGUAGE plpgsql;
456456-- ! Overload that accepts encrypted composite type and extracts each
457457-- ! array element's ciphertext as text.
458458-- !
459- -- ! @param val eql_v2_encrypted Encrypted array value
459+ -- ! @param eql_v2_encrypted Encrypted array value
460460-- ! @return SETOF text One ciphertext string per array element
461461-- ! @throws Exception if value is not an array
462462-- !
0 commit comments