https://github.com/moleculerjs/moleculer-db
:battery: Database access service mixins for Moleculer
https://github.com/moleculerjs/moleculer-db
database-adapter microservices moleculer
Last synced: 3 months ago
JSON representation
:battery: Database access service mixins for Moleculer
- Host: GitHub
- URL: https://github.com/moleculerjs/moleculer-db
- Owner: moleculerjs
- License: mit
- Created: 2017-11-12T19:10:11.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2025-04-29T18:12:46.000Z (5 months ago)
- Last Synced: 2025-06-14T14:41:32.429Z (4 months ago)
- Topics: database-adapter, microservices, moleculer
- Language: JavaScript
- Homepage: https://moleculer.services/
- Size: 7.77 MB
- Stars: 155
- Watchers: 9
- Forks: 121
- Open Issues: 71
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README


[](https://travis-ci.org/moleculerjs/moleculer-db)
[](https://coveralls.io/github/moleculerjs/moleculer-db?branch=master)
[](https://codeclimate.com/github/moleculerjs/moleculer-db/maintainability)
[](https://snyk.io/test/github/moleculerjs/moleculer-db)
[](https://discord.gg/TSEcDRP)# Official DB addons for Moleculer framework
## Generals
| Name | Version | Description |
| ---- | ------- | ----------- |
| [moleculer-db](/packages/moleculer-db#readme) | [](https://www.npmjs.com/package/moleculer-db) | Moleculer service to store entities in database |
| [moleculer-db-adapter-couchdb-nano](/packages/moleculer-db-adapter-couchdb-nano#readme) | [](https://www.npmjs.com/package/moleculer-db-adapter-couchdb-nano) | CouchDB Nano adapter for Moleculer DB service. |
| [moleculer-db-adapter-mongo](/packages/moleculer-db-adapter-mongo#readme) | [](https://www.npmjs.com/package/moleculer-db-adapter-mongo) | MongoDB native adapter for Moleculer DB service. |
| [moleculer-db-adapter-mongoose](/packages/moleculer-db-adapter-mongoose#readme) | [](https://www.npmjs.com/package/moleculer-db-adapter-mongoose) | Mongoose adapter for Moleculer DB service |
| [moleculer-db-adapter-sequelize](/packages/moleculer-db-adapter-sequelize#readme) | [](https://www.npmjs.com/package/moleculer-db-adapter-sequelize) | SQL adapter (Postgres, MySQL, SQLite & MSSQL) for Moleculer DB service |# Contribution
## Install dependencies
```bash
$ npm run setup
```## Development
**Run the `simple` example in `moleculer-db` service with watching**
```bash
$ npm run dev moleculer-db
```**Run the `full` example in `moleculer-db` service w/o watching**
```bash
$ npm run demo moleculer-db full
```## Test
```bash
$ npm test
```## Create a new addon
```bash
$ npm run init moleculer-
```## Publish new releases
```bash
$ npm run release
```# License
The project is available under the [MIT license](https://tldrlegal.com/license/mit-license).# Contact
Copyright (c) 2016-2024 MoleculerJS[](https://github.com/moleculerjs) [](https://twitter.com/MoleculerJS)