ah-sequelize-plugin
Advanced tools
+31
-42
@@ -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" : {} | ||
| // } | ||
| // ] | ||
| // } | ||
| // } | ||
| // } | ||
| // } |
+1
-1
@@ -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": { |
+1
-0
@@ -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 |
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
9204
1.47%140
0.72%128
-7.25%