gpt4 book ai didi

c - MongoDB C 驱动程序 : How to replace a document

转载 作者:行者123 更新时间:2023-11-30 14:55:38 25 4
gpt4 key购买 nike

我们如何使用 Mongo C Driver 替换 MongoDB 中的文档?

有可用的 API 吗?在 Mongo shell 中,我可以使用 ReplaceOne 来实现此目的。

但是我如何通过我的 C 程序来做到这一点?

最佳答案

可用于 MongoDB 的驱动程序的完整列表位于 https://docs.mongodb.com/ecosystem/drivers/ C 的驱动程序位于 http://mongoc.org/ .

有一系列基本的 CRUD 操作可供选择 http://mongoc.org/libmongoc/current/tutorial.html#tutorial-crud-operations 。查看 API 中是否有相关方法。

关于c - MongoDB C 驱动程序 : How to replace a document,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45674044/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com