我试图使用锈迹语言开发一个基本的web应用程序,使用actix框架和以mongodb作为数据库的r2d2。我找不到任何关于如何存档的完整和工作文档。也许有人能帮我。问题是,我似乎无法从r2d2连接池获得mongodb连接。遗憾的是,我发现的任何文档中都没有涵盖这部分内容。我发现了一些链接:
此部分创建连接池并将其交给actix。error[E0599]: no method named `collections` found for type
in /Library/WebServer/Documents/r2d2/vendor/yiisoft/yii2/caching/MemCache.php:217
#0 /Library/WebServer/Documents/r2d2/vendor/yiisoft/yii2/caching/MemCache.php(113): yii\caching\
appears within the type `diesel::pg::PgConnection`note: required because it appears within the type `std::option::Option<r2d2::Conn<diesel::pg::PgConnection>>`
note: required b