* Initializes a bson iterator from a pgbson structure at a * specified dot-notation path. if the path does not exist, returns false. */
| 677 | * specified dot-notation path. if the path does not exist, returns false. |
| 678 | */ |
| 679 | bool |
| 680 | PgbsonInitIteratorAtPath(const pgbson *bson, const char *path, bson_iter_t *iterator) |
| 681 | { |
| 682 | bson_iter_t documentIterator; |
| 683 | PgbsonInitIterator(bson, &documentIterator); |
| 684 | return bson_iter_find_descendant(&documentIterator, path, iterator); |
| 685 | } |
| 686 | |
| 687 | |
| 688 | /* |
no test coverage detected