WIP: reduce abstraction #6

Closed
coolaj86 wants to merge 7 commits from cleanup into kid-fix
1 changed files with 5 additions and 5 deletions
Showing only changes of commit 5cf90c1109 - Show all commits

View File

@ -67,11 +67,10 @@ Greenlock.create({
You may use database URLs (also known as 'connection strings') to initialize sequelize:
```js
var Sequelize = require('sequelize');
var db = new Sequelize('postgres://user:pass@hostname:port/database');
var dbUrl = 'postgres://user:pass@hostname:port/database';
Greenlock.create({
store: require('greenlock-store-sequelize').create({ db: db })
store: require('greenlock-store-sequelize').create({ storeDatabaseUrl: dbUrl })
...
});
```
@ -79,10 +78,11 @@ Greenlock.create({
If you need to use **custom options**, just instantiate sequelize directly:
```js
var dbUrl = 'postgres://user:pass@hostname:port/database';
var Sequelize = require('sequelize');
var db = new Sequelize('postgres://user:pass@hostname:port/database');
Greenlock.create({
store: require('greenlock-store-sequelize').create({ storeDatabaseUrl: dbUrl })
store: require('greenlock-store-sequelize').create({ db: db })
...
});
```