Skip to content

Commit 2dd94c7

Browse files
committed
Readme: emphasized that protobuf_query only returns the first result.
1 parent 90c5dd8 commit 2dd94c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ SELECT protobuf_query('path.to.Message:path.to.field', protobuf_as_byte_array) A
9898

9999
The following functions are defined:
100100

101-
- `protobuf_query(query, protobuf)` returns the first matching field in the protobuf, or NULL if missing or proto3 default. (You can [`coalesce`](https://www.postgresql.org/docs/13/functions-conditional.html#FUNCTIONS-COALESCE-NVL-IFNULL) the nulls.)
101+
- `protobuf_query(query, protobuf)` returns the **first** matching field in the protobuf, or NULL if missing or proto3 default. (You can [`coalesce`](https://www.postgresql.org/docs/13/functions-conditional.html#FUNCTIONS-COALESCE-NVL-IFNULL) the nulls.)
102102
- `protobuf_query_array(query, protobuf)` returns all matching fields in the protobuf as a text array. Missing or proto3 default values are not returned.
103103
- `protobuf_query_multi(query, protobuf)` returns all matching fields in the protobuf as a set of rows. Missing or proto3 default values are not returned.
104104
- `protobuf_to_json_text(protobuf_type, protobuf)` converts the protobuf to a JSON string, assuming it's of the given type.

0 commit comments

Comments
 (0)