sails-hook-better-sequelize
Advanced tools
Comparing version 1.0.5 to 1.0.6
{ | ||
"name": "sails-hook-better-sequelize", | ||
"version": "1.0.5", | ||
"version": "1.0.6", | ||
"description": "Sails hook for sequelize ORM", | ||
@@ -28,4 +28,4 @@ "main": "lib/index.js", | ||
"dependencies": { | ||
"sequelize": "^5.15.1" | ||
"sequelize": "^5.21.3" | ||
} | ||
} |
# sails-hook-sequelize | ||
### Example Configuration | ||
```js | ||
module.exports.sequelize = { | ||
customModelGlobal: 'SQ', | ||
exposeToGlobal: true, | ||
defaultAttributes: { | ||
addedBy: { | ||
type: 'INTEGER', | ||
allowNull: false | ||
}, | ||
updatedBy: { | ||
type: 'INTEGER', | ||
allowNull: false | ||
} | ||
}, | ||
datastores: { | ||
default: { | ||
default: true, | ||
user: 'root', | ||
password: '', | ||
database: 'mydb', | ||
dialect: 'mariadb', | ||
options: { | ||
operatorsAliases: false, | ||
dialect: 'mariadb', | ||
host : 'localhost', | ||
port : 3307, | ||
logging: 'debug' // console.log or specify sails log level to use ('info', 'warn', 'verbose', etc) | ||
} | ||
} | ||
} | ||
}; | ||
``` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
16023
37
Updatedsequelize@^5.21.3