你好 :) 我正在开发一个链接到 mongo DB 的 golang 应用程序(我使用官方驱动程序:)mongo-go这是我的问题,我想执行这个功能
db.rmTickets.find().forEach(function(doc) {
doc.created=new Date(doc.created)
doc.updated=new Date(doc.updated)
doc.deadline=new Date(doc.deadline)
doc.dateEstimationDelivery=new Date(doc.dateEstimationDelivery)
doc.dateTransmitDemand=new Date(doc.dateTransmitDemand)
doc.dateTransmitQuotation=new Date(doc.dateTransmitQuotation)
doc.dateValidationQuotation=new Date(doc.dateValidationQuotation)
doc.dateDeliveryCS=new Date(doc.dateDeliveryCS)
db.rmTickets.save(doc)
})
我在 godoc 上看到 aDatabase.RunCommand()存在,但我不确定如何使用它。如果有人可以提供帮助:) 谢谢
倚天杖
相关分类