mongoose-connection-promise:使用promise将Mongoose连接到MongoDB实例的便利性库-源码

上传者: 42137539 | 上传时间: 2021-02-03 14:05:51 | 文件大小: 14KB | 文件类型: ZIP
猫鼬连接承诺 使用promise将Mongoose连接到MongoDB实例的便利性库。 注意:随着mongoose> 5.x的引入,该库变得过时,因为对mongoose> 5.x的连接处理有了很大的改进。 ,以很好地总结所进行的更改/改进。 因此,对于Mongoose> 5.x不会更新此库。 目录 (使用生成的TOC) 安装 用安装 $ npm install mongoose-connection-promise 安装 $ yarn add mongoose-connection-promise 动机 虽然mongoose不会强迫您等到创建mongoose连接后,但该模块的作者还是希望在知道成功建立连接之前不以任何应用程序开头。 mongoose -connection-promise帮助可靠地连接和断开Mongoose中的MongoDB。 用法 在express.js中使用mongoose-connection-promise 使用默认设置将猫鼬连接到MongoDB实例: const express = require ( 'express' ) ; const Mo

文件下载

资源详情

[{"title":"( 22 个子文件 14KB ) mongoose-connection-promise:使用promise将Mongoose连接到MongoDB实例的便利性库-源码","children":[{"title":"mongoose-connection-promise-master","children":[{"title":".eslintrc.json <span style='color:#111;'> 53B </span>","children":null,"spread":false},{"title":"circle.yml <span style='color:#111;'> 322B </span>","children":null,"spread":false},{"title":"lib","children":[{"title":"winster-config.js <span style='color:#111;'> 397B </span>","children":null,"spread":false},{"title":"index.js <span style='color:#111;'> 5.51KB </span>","children":null,"spread":false}],"spread":true},{"title":".verb.md <span style='color:#111;'> 1.37KB </span>","children":null,"spread":false},{"title":"test","children":[{"title":".eslintrc.json <span style='color:#111;'> 283B </span>","children":null,"spread":false},{"title":"integration","children":[{"title":"index.spec.js <span style='color:#111;'> 2.24KB </span>","children":null,"spread":false}],"spread":true},{"title":"mocha.conf.js <span style='color:#111;'> 149B </span>","children":null,"spread":false},{"title":"unit","children":[{"title":"index.spec.js <span style='color:#111;'> 1.90KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"README.md <span style='color:#111;'> 6.47KB </span>","children":null,"spread":false},{"title":"docs","children":[{"title":"usage.md <span style='color:#111;'> 1.31KB </span>","children":null,"spread":false},{"title":"test.md <span style='color:#111;'> 111B </span>","children":null,"spread":false},{"title":"install.md <span style='color:#111;'> 185B </span>","children":null,"spread":false},{"title":"author.md <span style='color:#111;'> 138B </span>","children":null,"spread":false},{"title":"motivation.md <span style='color:#111;'> 306B </span>","children":null,"spread":false}],"spread":true},{"title":"renovate.json <span style='color:#111;'> 64B </span>","children":null,"spread":false},{"title":"docker-compose.yml <span style='color:#111;'> 160B </span>","children":null,"spread":false},{"title":".editorconfig <span style='color:#111;'> 422B </span>","children":null,"spread":false},{"title":".gitignore <span style='color:#111;'> 309B </span>","children":null,"spread":false},{"title":"index.js <span style='color:#111;'> 35B </span>","children":null,"spread":false},{"title":"CHANGELOG.yml <span style='color:#111;'> 562B </span>","children":null,"spread":false},{"title":"package.json <span style='color:#111;'> 2.00KB </span>","children":null,"spread":false}],"spread":false}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明