mongojs:实现官方mongo api的Node.js模块

时间:2024-02-23 16:58:43
【文件属性】:

文件名称:mongojs:实现官方mongo api的Node.js模块

文件大小:102KB

文件格式:ZIP

更新时间:2024-02-23 16:58:43

mongodb mongodb-driver MongoDBJavaScript

mongojs mongodb的模块,它尽可能地模仿 。 它包装了 ,可通过 npm install mongojs 用法 mongojs易于使用: const mongojs = require ( 'mongojs' ) const db = mongojs ( connectionString , [ collections ] ) 连接字符串应遵循描述的格式。 例如: // simple usage for a local db const db = mongojs ( 'mydb' , [ 'mycollection' ] ) // the db is on a remote server (the port default to mongo) const db = mongojs ( 'example.com/mydb' , [ 'mycollection' ] ) // we can also provide some credentials const db = mongojs ( 'username:password@example.com/mydb' , [


【文件预览】:
mongojs-master
----_config.yml(26B)
----.gitignore(51B)
----README.md(11KB)
----CHANGELOG.md(76KB)
----test()
--------test-find-cursor-options.js(451B)
--------test-find-tailable.js(1KB)
--------test-rename-collection.js(424B)
--------test-proxy.js(386B)
--------test-replace-one.js(749B)
--------test-aggregate-options.js(437B)
--------test-cursor-explain.js(388B)
--------test-find-sort.js(473B)
--------test-save.js(895B)
--------test-find-one.js(291B)
--------test-eval.js(551B)
--------test-find.js(233B)
--------test-cursor-rewind.js(575B)
--------test-cursor-map.js(325B)
--------test-find-limit.js(252B)
--------test-find-cursor.js(435B)
--------test-user-drop.js(640B)
--------test-map-reduce.js(2KB)
--------tape.js(190B)
--------test-insert-many.js(406B)
--------test-to-string-bulk.js(1KB)
--------test-find-query.js(285B)
--------test-optional-callback.js(287B)
--------test-drop-indexes.js(818B)
--------test-expose-bson-types.js(408B)
--------test-close-unopened.js(228B)
--------test-update-multi.js(528B)
--------test-excessive-bulk-operations.js(686B)
--------test-find-dot-collection.js(707B)
--------test-connection-strings.js(680B)
--------test-get-collection-names.js(383B)
--------test-find-and-select.js(324B)
--------test-aggregate-pipeline.js(1KB)
--------test-bulk-replace-one.js(814B)
--------test-cursor-size.js(408B)
--------test-group.js(547B)
--------test-chained-collection-names.js(443B)
--------test-update-and-callback.js(332B)
--------test-aggregate.js(1KB)
--------test-update.js(372B)
--------test-to-json-bulk.js(1KB)
--------test-iscapped.js(628B)
--------test-pass-mongojs.js(721B)
--------test-to-string.js(214B)
--------test-to-string-replica-set.js(271B)
--------test-find-sort-many.js(378B)
--------test-find-large-collection.js(326B)
--------test-remove.js(825B)
--------test-drop-database.js(367B)
--------test-streaming-cursor.js(501B)
--------test-simple.js(247B)
--------test-create-collection.js(357B)
--------test-insert-duplicate-key.js(601B)
--------test-cursor-foreach.js(384B)
--------test-find-and-modify.js(2KB)
--------test-update-many.js(513B)
--------test-insert.js(908B)
--------test-pass-mongodb.js(908B)
--------test-find-by-objectid.js(562B)
--------test-insert-one.js(446B)
--------test-update-one.js(378B)
--------test-mongojs-exports.js(912B)
--------insert.js(564B)
--------test-cursor-count.js(449B)
--------test-runcommand.js(1KB)
--------test-bulk-updates.js(2KB)
--------test-empty-bulk.js(596B)
--------test-event-connect.js(311B)
--------test-user-create.js(820B)
--------test-db-stats.js(444B)
--------test-stats.js(278B)
--------test-to-string-mongos.js(256B)
--------test-crash.js(219B)
--------test-connect-non-existing-db.js(512B)
--------test-event-close.js(294B)
--------test-disinct.js(412B)
--------crash.js(220B)
--------test-excessive-bulk-update.js(967B)
----LICENSE(1KB)
----package.json(1KB)
----CONTRIBUTING.md(2KB)
----index.js(2KB)
----.travis.yml(691B)
----.editorconfig(224B)
----lib()
--------bulk.js(4KB)
--------database.js(5KB)
--------cursor.js(4KB)
--------collection.js(11KB)
----release.js(769B)
----package-lock.json(125KB)

网友评论