sails-mongo

MongoDB adapter for Sails.js / Waterline ORM.

  • 所有者: balderdashy/sails-mongo
  • 平台:
  • 許可證:
  • 分類:
  • 主題:
  • 喜歡:
    0
      比較:

Github星跟蹤圖

Node.js and MongoDB on Sails.js/Waterline

sails-mongo

Sails.js/Waterline adapter for MongoDB. (See compatibility for more details.)

Provides easy access to MongoDB from Sails.js & Waterline.
This module is a Sails/Waterline adapter maintained by the core team. Its goal is to provide robust, easy-to-use access to MongoDB from Sails.js and Waterline.

As an adapter, this module implements a set of declarative interfaces, conventions, and best-practices for integrating with Mongo databases.
Strict adherence to an adapter specification enables the (re)use of built-in generic test suites, standardized documentation, reasonable expectations around the API for your users, and overall, a more pleasant development experience for everyone.

Installation

To install this adapter, run:

$ npm install sails-mongo

Then connect the adapter to one or more of your app's datastores.

Usage

Visit Models & ORM in the docs for more information about using models, datastores, and adapters in your app/microservice.

Compatibility

This version of the adapter has been tested with MongoDB versions 3.4 and 3.6.

This adapter implements the following methods:, Method, Status, Layer, :---------------------, :------------------, :--------------, registerDatastore, Implemented, N/A, teardown, Implemented, N/A, validateModelDef, Implemented, Modeled, createRecord, Implemented, Modeled (DML), createEachRecord, Implemented, Modeled (DML), updateRecords, Implemented, Modeled (DML), destroyRecords, Implemented, Modeled (DML), findRecords, Implemented, Modeled (DQL), join, not supported, Modeled (DQL), countRecords, Implemented, Modeled (DQL), sumRecords, Implemented, Modeled (DQL), avgRecords, Implemented, Modeled (DQL), definePhysicalModel, Implemented, Migratable, dropPhysicalModel, Implemented, Migratable, setPhysicalSequence, not supported, Migratable, ## Questions?

See Extending Sails > Adapters > Custom Adapters in the Sails documentation, or check out recommended support options.

Contributing   Build Status   Build status on Windows

Please observe the guidelines and conventions laid out in the Sails project contribution guide when opening issues or submitting pull requests.

NPM

This repository includes a Docker Compose file that helps setting up the environment needed to run the test.

The npm run docker-test command runs the tests on a single run under the supported MongoDB version
(at this time, up to 3.6).
For more information, check MongoDB's Support Policy.

To run tests while developing, you can run npm run docker. This command opens a docker instance and opens a shell.
From there you can run npm test to run the tests as many times as you need.

Special thanks

Thanks so much to Ted Kulp (@tedkulp) and Robin Persson (@prssn) for building the first version of this adapter back in 2013. Since then, it has evolved into a core adapter within the framework.

Bugs   NPM version

To report a bug, click here.

License

This core adapter is available under the MIT license.

As for Waterline and the Sails framework? They're free and open-source under the MIT License.

© The Sails Co.

image_squidhome@2x.png

主要指標

概覽
名稱與所有者balderdashy/sails-mongo
主編程語言JavaScript
編程語言JavaScript (語言數: 3)
平台
許可證
所有者活动
創建於2013-02-28 19:55:00
推送於2024-09-12 19:09:57
最后一次提交2024-09-12 14:09:46
發布數59
最新版本名稱v2.1.2 (發布於 2024-09-12 14:09:46)
第一版名稱v0.0.1 (發布於 2013-01-16 00:13:26)
用户参与
星數410
關注者數36
派生數259
提交數890
已啟用問題?
問題數0
打開的問題數0
拉請求數98
打開的拉請求數9
關閉的拉請求數60
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?