This commit is contained in:
Ryan Burnette 2019-04-10 14:20:34 +00:00
parent f5fe01edaf
commit 2f5a771156
1 changed files with 3 additions and 4 deletions

View File

@ -89,12 +89,11 @@ var store = require('le-store-sequelize')({
### Custom Database Object
You can pass in your own database object if you wish. It doesn't actually even
have to be a Sequelize database object, as long as the object responds to the
implemented methods and returns the expected results.
If you already have a Sequelize object, you can pass that in as `config.db`,
circumventing the baked-in database entirely.
```javascript
var db = new MyDatabase();
var db = require('./db');
var store = require('le-store-sequelize')({
db