Codeception / Codeception/module-mongodb

Restore args deprecated

未关闭
#13 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
PHP
星标
2
派生
11
PR 合并指标
30 天内没有已合并 PR

描述

Hi,

Thanks for this package. Since mongo 3.4 there are args deprecated. I'm using the new v3.0.0 of this package.

https://stackoverflow.com/a/41712868/1171049

````
the --db and --collection args should only be used when restoring from a BSON file. Other uses are deprecated and will not exist in the future; use --nsInclude instead

````
From Mongo docs: The use of [--db](https://www.mongodb.com/docs/database-tools/mongorestore/#std-option-mongorestore.--db) and [--collection](https://www.mongodb.com/docs/database-tools/mongorestore/#std-option-mongorestore.--collection) options are deprecated when restoring from a directory or an archive file. Instead, to restore from an archive or a directory, see [--nsInclude](https://www.mongodb.com/docs/database-tools/mongorestore/#std-option-mongorestore.--nsInclude) instead.

https://www.mongodb.com/docs/database-tools/mongorestore/#std-option-mongorestore.--nsInclude

Thanks!

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。