Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

sails-hook-better-sequelize

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sails-hook-better-sequelize - npm Package Compare versions

Comparing version 1.0.5 to 1.0.6

4

package.json
{
"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)
}
}
}
};
```
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc