| 1649 | |
| 1650 | |
| 1651 | static pgbson * |
| 1652 | SerializeDeleteOneResult(DeleteOneResult *result) |
| 1653 | { |
| 1654 | pgbson_writer writer; |
| 1655 | PgbsonWriterInit(&writer); |
| 1656 | |
| 1657 | PgbsonWriterAppendBool(&writer, "isRowDeleted", 12, result->isRowDeleted); |
| 1658 | |
| 1659 | if (result->objectId != NULL) |
| 1660 | { |
| 1661 | PgbsonWriterAppendDocument(&writer, "objectId", 8, result->objectId); |
| 1662 | } |
| 1663 | |
| 1664 | if (result->resultDeletedDocument != NULL) |
| 1665 | { |
| 1666 | PgbsonWriterAppendDocument(&writer, "resultDeletedDocument", 21, |
| 1667 | result->resultDeletedDocument); |
| 1668 | } |
| 1669 | |
| 1670 | return PgbsonWriterGetPgbson(&writer); |
| 1671 | } |
| 1672 | |
| 1673 | |
| 1674 | static pgbson * |
no test coverage detected