* PgbsonInitFromIterDocumentValue initializes a pgbson structure from the * document that given iterator holds. */
| 573 | * document that given iterator holds. |
| 574 | */ |
| 575 | pgbson * |
| 576 | PgbsonInitFromIterDocumentValue(const bson_iter_t *iter) |
| 577 | { |
| 578 | /* copy just to ensure we don't modify the const iter */ |
| 579 | bson_iter_t iterCopy = *iter; |
| 580 | const bson_value_t *value = bson_iter_value(&iterCopy); |
| 581 | return PgbsonInitFromDocumentBsonValue(value); |
| 582 | } |
| 583 | |
| 584 | |
| 585 | /* |
no test coverage detected