Skip to content

Commit 67b9515

Browse files
authored
Readme: mention coalesce
1 parent 356fd37 commit 67b9515

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
@@ -97,7 +97,7 @@ SELECT protobuf_query('path.to.Message:path.to.field', protobuf_as_byte_array) A
9797

9898
The following functions are defined:
9999

100-
- `protobuf_query(query, protobuf)` returns the first matching field in the protobuf, or NULL if missing or proto3 default.
100+
- `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.)
101101
- `protobuf_query_array(query, protobuf)` returns all matching fields in the protobuf as a text array. Missing or proto3 default values are not returned.
102102
- `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.
103103
- `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)