An open API service indexing awesome lists of open source software.

https://github.com/matter-in-motion/mm-db

Simple default database shortcut extension
https://github.com/matter-in-motion/mm-db

database extension matter-in-motion shortcut

Last synced: 2 months ago
JSON representation

Simple default database shortcut extension

Awesome Lists containing this project

README

          

# Matter In Motion. Default databse extension

[![NPM Version](https://img.shields.io/npm/v/mm-db.svg?style=flat-square)](https://www.npmjs.com/package/mm-db)
[![NPM Downloads](https://img.shields.io/npm/dt/mm-db.svg?style=flat-square)](https://www.npmjs.com/package/mm-db)

This extension provides a simple shortcut for defining a default database in your app.

## Usage

[Extensions installation instructions](https://github.com/matter-in-motion/mm/blob/master/docs/extensions.md)

**Note! Put this extension after all your database extensions in the `extensions` settings.**

Anywhere in your app, you can get default database unit: `units.require('db')`

## Settings

* **db** — string. Default database you want to use.

License: MIT.