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

ah-sequelize-plugin

Package Overview
Dependencies
Maintainers
1
Versions
69
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ah-sequelize-plugin - npm Package Compare versions

Comparing version 0.4.0 to 0.4.1

73

config/sequelize.js

@@ -10,46 +10,35 @@ exports.default = {

"password" : "",
}
};
}
}
};
// You can define even more elaborate configurations (including replication).
// See http://sequelize.readthedocs.org/en/latest/api/sequelize/index.html for more information
// For example:
exports.test = {
sequelize: function(api){
return {
"logging" : false,
"database" : "TEST_DB",
"dialect" : "mysql",
"port" : 3306,
"host" : "127.0.0.1",
"username" : "root",
"password" : "",
}
}
}
exports.production = {
sequelize: function(api){
return {
"logging" : false,
"database" : "PRODUCTION_DB",
"dialect" : "mysql",
"port" : 3306,
"replication" : {
"write": {
"host" : "127.0.0.1",
"username" : "root",
"password" : "",
"pool" : {}
},
"read": [
{
"host" : "127.0.0.1",
"username" : "root",
"password" : "",
"pool" : {}
}
]
}
}
}
}
// exports.production = {
// sequelize: function(api){
// return {
// "logging" : false,
// "database" : "PRODUCTION_DB",
// "dialect" : "mysql",
// "port" : 3306,
// "replication" : {
// "write": {
// "host" : "127.0.0.1",
// "username" : "root",
// "password" : "",
// "pool" : {}
// },
// "read": [
// {
// "host" : "127.0.0.1",
// "username" : "root",
// "password" : "",
// "pool" : {}
// }
// ]
// }
// }
// }
// }

@@ -5,3 +5,3 @@ {

"description": "I use sequelize in actionhero as an ORM",
"version": "0.4.0",
"version": "0.4.1",
"homepage": "http://actionherojs.com",

@@ -8,0 +8,0 @@ "repository": {

@@ -12,2 +12,3 @@ # ah-sequelize-plugin

- you will need to add the mysql (or other supported database) package (`npm install mysql --save`) to your package.json
- there are many options you can pass to sequelize. You can learn more here: http://sequelize.readthedocs.org/en/latest/api/sequelize/index.html

@@ -14,0 +15,0 @@ A `./config/sequelize.json` file will be created which will store your database configuration

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