[英]Can I execute atomic transactions with MongoDB from R?
As the title states: Is there a way with any of the mongodb-clients in R to execute atomic transactions?正如标题所述:R 中的任何 mongodb 客户端是否有办法执行原子事务? If so, how would I do this?
如果是这样,我该怎么做? I couldn't find any documentation on this topic.
我找不到关于此主题的任何文档。
I think you should be able to use DBI
that package allows for transactions ( dbBegin
, dbCommit
usw).我认为您应该能够使用 package 允许事务的
DBI
( dbBegin
、 dbCommit
usw)。 It seems you can make a connection with odbc
: https://db.rstudio.com/databases/mongodb/ .看来您可以与
odbc
建立连接: https://db.rstudio.com/databases/mongodb/ 。 I have not tested this but it seems it should work.我没有对此进行测试,但它似乎应该有效。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.